diff tests/test-run-tests.t @ 38621:f4a214300957

run-tests: add missing life-cycle methods on the example custom test result A previous commit introduced `onStart` and `onEnd` methods on test result but the one used in tests lacked those two methods. Fix it and add some output to be sure they are called. Differential Revision: https://phab.mercurial-scm.org/D3899
author Boris Feld <boris.feld@octobus.net>
date Tue, 10 Jul 2018 08:25:04 +0200
parents c44ae5997869
children a9a4b0fc1e5d
line wrap: on
line diff
--- a/tests/test-run-tests.t	Tue Jul 10 08:23:46 2018 +0200
+++ b/tests/test-run-tests.t	Tue Jul 10 08:25:04 2018 +0200
@@ -1252,8 +1252,10 @@
   $ 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.
+  ON_START! <__main__.TestSuite tests=[<__main__.TTest testMethod=test-failure.t>, <__main__.TTest testMethod=test-success.t>]>
   FAILURE! test-failure.t output changed
   SUCCESS! test-success.t
+  ON_END!
 
 Test reusability for third party tools
 ======================================