Discussion:
[eiffel_software] Running UNIT tests from command line
Bernd Schoeller bernd.schoeller@gmail.com [eiffel_software]
2015-08-04 20:56:20 UTC
Permalink
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
'Emmanuel Stapf' manus@eiffel.com [eiffel_software]
2015-08-04 21:36:47 UTC
Permalink
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
Bernd Schoeller bernd.schoeller@gmail.com [eiffel_software]
2015-08-05 06:06:19 UTC
Permalink
Great - must have overlooked that command line flag.

Bernd
Post by 'Emmanuel Stapf' ***@eiffel.com [eiffel_software]
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.
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
[Non-text portions of this message have been removed]

Loading...