This commit is contained in:
Anthony Scopatz 2016-02-19 18:23:12 -05:00
parent 275fd08d67
commit 6c91931346
2 changed files with 6 additions and 6 deletions

View file

@ -86,9 +86,9 @@ If you're working on a change and haven't yet committed it you can run the
tests associated with the change. This does not require that the change
include the unit test module. This will execute any unit tests that are
part of the change as well as the unit tests for xonsh source modules in
the changes::
the change::
$ scripts/run_tests.xsh $(which)
$ scripts/run_tests.xsh
If you want to run specific tests you can specify the test names to
execute. For example to run test_aliases::

View file

@ -21,12 +21,12 @@ if len($ARGS) == 1:
# Run all tests.
# ensure lexer/parser table module is up to date
$[python3 -c 'import setup; setup.build_tables()']
$[env XONSHRC='' nosetests]
$[env XONSHRC='' nosetests -q]
elif len($ARGS) == 2 and $ARG1 == 'all':
# Run all tests.
# ensure lexer/parser table module is up to date
$[python3 -c 'import setup; setup.build_tables()']
$[env XONSHRC='' nosetests]
$[env XONSHRC='' nosetests -q]
elif len($ARGS) == 2 and $ARG1 == 'edited':
# Run just the tests for the files edited in the uncommited change.
tests = set()
@ -46,7 +46,7 @@ elif len($ARGS) == 2 and $ARG1 == 'edited':
if tests:
# ensure lexer/parser table module is up to date
$[python3 -c 'import setup; setup.build_tables()']
$[env XONSHRC='' nosetests -v @(sorted(tests))]
$[env XONSHRC='' nosetests -q -v @(sorted(tests))]
else:
print('Cannot find any tests in the pending changes.', file=sys.stderr)
else:
@ -67,7 +67,7 @@ else:
if tests:
# ensure lexer/parser table module is up to date
$[python3 -c 'import setup; setup.build_tables()']
$[env XONSHRC='' nosetests -v @(sorted(tests))]
$[env XONSHRC='' nosetests -q -v @(sorted(tests))]
else:
print('Cannot find any tests matching {}.'.format($ARGS[1:]),
file=sys.stderr)