I assume you are referring to tests build using EiffelStudio's AutoTest. In that case, you can run them from the command line using the -tests option. It will run all the tests available. As for contracts, they are checked if enabled in your project configuration file.
The output looks like:
Executing 385 tests
test_last_index_of (TEST_STRING_8): pass
test_occurrences (TEST_STRING_8): pass
...
test_to_real (TEST_IMMUTABLE_STRING_8): pass
test_remove (TEST_STRING_8): pass
Execution complete
385 tests total (385 executed, 0 failing, 0 unresolved)
Manu
-----Original Message-----
Sent: Tuesday, August 04, 2015 13:56
Subject: [eiffel_software] Running UNIT tests from command line
I have a project that has unit tests. What is the best way to run these from the
command line (optimally with all contract checking enabled)?
Thanks,
Bernd
------------------------------------
------------------------------------
------------------------------------------------------------------------
Eiffel Software
http://www.eiffel.com
Customer support: http://support.eiffel.com
User group: http://groups.eiffel.com/join
------------------------------------------------------------------------
------------------------------------
Yahoo Groups Links