Skip to content

Commit 777affc

Browse files
Easy access to build the test javadocs
1 parent a3994ad commit 777affc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

testing/bin/coverage

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def parse():
4545
parser.add_argument('--cassandra-version', help='run tests on a specific Cassandra version')
4646
parser.add_argument('--upload', action='store_true', help='upload cobertura site to configured server')
4747
parser.add_argument('--clean', action='store_true', help='runs the maven project from a clean environment')
48+
parser.add_argument('--testdocs', action='store_true', help='generates the test\'s Javadoc')
4849
args = parser.parse_args()
4950
return args
5051

@@ -116,6 +117,12 @@ def main():
116117
maybe_upload_cobertura_site()
117118
sys.exit()
118119

120+
if args.testdocs:
121+
execute('mvn javadoc:test-javadoc')
122+
print '\nTo view test Javadocs:'
123+
print '\topen driver-core/target/site/testapidocs/index.html'
124+
sys.exit()
125+
119126
# Setup required ccm loopbacks
120127
maybe_setup_loopbacks()
121128

0 commit comments

Comments
 (0)