Skip to content

Commit 25c4e5b

Browse files
Added an automated switch to coverage to make for simpler server integration
1 parent 9995d89 commit 25c4e5b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

testing/bin/coverage

Lines changed: 2 additions & 1 deletion
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('--automated', action='store_true', help='ensures that runs do not get hung up by user input requests')
4849
parser.add_argument('--testdocs', action='store_true', help='generates the test\'s Javadoc')
4950
parser.add_argument('--samplecode', action='store_true', help='prints generated sample CQL')
5051
args = parser.parse_args()
@@ -158,7 +159,7 @@ def main():
158159
execute('%s' % cobertura_build_command)
159160

160161
try:
161-
if raw_input('Save Cobertura Report? [y/N] ').lower() == 'y':
162+
if args.automated or raw_input('Save Cobertura Report? [y/N] ').lower() == 'y':
162163

163164
# Save out cobertura site files
164165
save_cobertura_site()

0 commit comments

Comments
 (0)