anonym | Anmelden | Neues Konto anmelden | 2022-08-13 05:40 UTC |
Startseite | Übersicht | Probleme anzeigen | Änderungsprotokoll | Roadmap | Dokumentation | Konto |
Einfache Problemansicht anzeigen [ Zu Notizen wechseln ] | [ erweiterte Anzeige ] [ Problem-Historie ] [ Drucken ] | ||||||
ID | Kategorie | Auswirkung | Reproduzierbar | Meldungsdatum | Letzte Aktualisierung | ||
0000098 | [Kaputt] general | Feature-Wunsch | immer | 2012-03-21 09:33 | 2012-08-30 15:12 | ||
Reporter | testcocoon | Anzeigestatus | öffentlich | ||||
Bearbeitung durch | xclerc | ||||||
Priorität | normal | Lösung | erledigt | ||||
Status | erledigt | Produktversion | 1.1 | ||||
Zusammenfassung | 0000098: Missing return value for launch_tests, run_tests, ... | ||||||
Beschreibung |
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 |
||||||
Zusätzliche Information | |||||||
Tags | Keine Tags zugeordnet. | ||||||
Angehängte Dateien | |||||||
|
![]() |
|
(0000253) xclerc (Administrator) 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 (Reporter) 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 (Administrator) 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". [^] |
Mantis 1.1.7[^] Copyright © 2000 - 2008 Mantis Group |