Mercurial > public > mercurial-scm > hg
diff tests/test-run-tests.t @ 38616:c44ae5997869
run-tests: add support for external test result
The goal is to begin experiment with custom test result. I'm not sure we
should offers any backward-compatibility guarantee on that plugin API as it
doesn't change often and shouldn't have too much clients.
Differential Revision: https://phab.mercurial-scm.org/D3700
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Sat, 28 Apr 2018 12:51:44 +0200 |
parents | f83600efa1ca |
children | f4a214300957 |
line wrap: on
line diff
--- a/tests/test-run-tests.t Thu Mar 15 17:37:03 2018 +0530 +++ b/tests/test-run-tests.t Sat Apr 28 12:51:44 2018 +0200 @@ -1246,6 +1246,15 @@ $ echo dead:beef::1 $LOCALIP (glob) +Add support for external test formatter +======================================= + + $ CUSTOM_TEST_RESULT=basic_test_result $PYTHON $TESTDIR/run-tests.py --with-hg=`which hg` "$@" test-success.t test-failure.t + + # Ran 2 tests, 0 skipped, 0 failed. + FAILURE! test-failure.t output changed + SUCCESS! test-success.t + Test reusability for third party tools ======================================