Commit Graph

8 Commits

Author SHA1 Message Date
Bruce Lacey
272cbd198d Exit with non-zero status when unit tests fail.
1.  Enhanced TestApp.py to return the unittest TestResult object to the calling method
2.  FreeCADTest.py now checks the TestResult object.  If all tests pass, FreeCADTest.py exits with a 0 however if any tests fail, then it exits with 1.  FreeCADTest.py calls os._exit() with the exit code instead of sys.exit() because Base::Interpreter:SystemExitException intercepts sys.exit() calls and swallows the exit code so there is no way to propogate the non-zero code from the python test cases through the interpreter to the shell in the current call stack.
2016-03-09 21:57:57 -08:00
wmayer
e0b12695b1 + write unit tests for Spreadsheet and expression stuff 2016-01-26 15:07:29 +01:00
wmayer
169b2e356e + clean-up, fix and new methods added in unit test module 2015-10-19 21:51:43 +02:00
Przemo Firszt
14c36da81d Test: Fix formatting in TestApp.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 14:03:44 +01:00
wmayer
82a4eb0cec + apply Debian patch: unittest to stdout 2015-07-09 15:29:45 +02:00
Yorik van Havre
578fefc9b1 Arch: Added test suite 2013-08-15 19:24:54 -03:00
Yorik van Havre
efe6abb54f Draft: Added test suite 2013-08-15 19:24:54 -03:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00