Mantis - Kaputt
Erweiterte Problemanzeige
98 general Feature-Wunsch immer 2012-03-21 09:33 2012-08-30 15:12
testcocoon  
xclerc  
normal  
erledigt 1.1  
erledigt  
keine    
keine 1.3  
0000098: Missing return value for launch_tests, run_tests, ...
run_tests, launch_tests and check return unit.
It would me more interesting to return a boolean which indicates if a there is a failure.

This would permits set the exit value of the test application for example.

if launch_test ...
then
  exit 0
else
  exit 1
Problem-Historie
2012-03-21 09:33 testcocoon Neues Problem
2012-08-29 20:12 xclerc Problemnotiz hinzugefügt: 0000253
2012-08-29 20:12 xclerc Status neu => geschlossen
2012-08-29 20:12 xclerc Lösung offen => wird nicht behoben
2012-08-29 21:15 testcocoon Problemnotiz hinzugefügt: 0000259
2012-08-29 21:15 testcocoon Status geschlossen => Rückmeldung
2012-08-29 21:15 testcocoon Lösung wird nicht behoben => wiedereröffnet
2012-08-30 15:12 xclerc Problemnotiz hinzugefügt: 0000260
2012-08-30 15:12 xclerc Status Rückmeldung => erledigt
2012-08-30 15:12 xclerc Behoben in Version => 1.3
2012-08-30 15:12 xclerc Lösung wiedereröffnet => erledigt
2012-08-30 15:12 xclerc Bearbeitung durch => xclerc

Notiz
(0000253)
xclerc   
2012-08-29 20:12   
The 'run_tests' and 'launch_tests' functions are intended to output their
results to the standard output. If you want to process the result of tests
execution, you should use 'exec_tests'.
(0000259)
testcocoon   
2012-08-29 21:15   
exec_tests permits check the result of the tests.
But this does not work with tests added used add_xyz test function.
In this case it is necessary to use launch_tests, and so it is not possible to analyze the test execution result into the unit test itself.
(0000260)
xclerc   
2012-08-30 15:12   
You are right. I have added a 'Test.get_tests' function that allows to
retrieve the list of tests added through 'Test.add_xyz' functions.

For now, it is only available in the darcs repository, that can be fetch
by executing "darcs get http://kaputt.x9c.fr". [^]