Skip to content
Snippets Groups Projects
Commit 50d36ab4 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

feat(testenv): option to show test output even on pass

parent b79c4e63
No related branches found
No related tags found
1 merge request!118small test related changes
This commit is part of merge request !118. Comments created here will be created in the context of that merge request.
......@@ -248,8 +248,11 @@ class _TestEnvCommand(AbstractCommand):
continue
forwarded_settings[k[0]] = k[1]
time.sleep(time_limit_in_s / 10)
pytest.main([path_to_test_file, '--rootdir='+test_root_folder,
'--settings', json.dumps(forwarded_settings)])
opts = [path_to_test_file, '--rootdir='+test_root_folder,
'--settings', json.dumps(forwarded_settings)]
if self.args.verbose_test :
opts.append('-rA')
pytest.main(opts)
subproc.terminate()
else:
log.info("Test Environment has been launched. Press Q to terminate.")
......
......@@ -129,6 +129,8 @@ if __name__ == '__main__':
'specify a single test case like this: Tests.py::my_test_case')
testenv.add_argument('--timeout', nargs='?', default='100', const=100, type=int,
help='Sets time timeout in seconds to reach the test server. Default is 100.')
testenv.add_argument('--verbose-test', action='store_true',
help='Show stdout/stderr output of tests even when passing.')
# Options for verb "compare"
compare = subparsers.add_parser('compare', help="Compare configuration(s) with a previously stored reference")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment