abort testing

40 views
Skip to first unread message

jjfoerch

unread,
Jan 3, 2009, 3:59:55 PM1/3/09
to shunit2-users
Hello,

Is there a way to abort testing?

I am testing a program which can run as a background process in
certain
circumstances. I want to ensure, before each test, that the program
is not
already running as a background process because that would invalidate
the
test. I also want to ensure, after each test, that the program was
correctly
ended, and its process is not still running.

I am going to perform the "is-running" test with a simple call to
pidof.

However, is there a way to make shunit2 abort all testing from
within a setUp
or tearDown?

Thank you,
John Foerch
Reply all
Reply to author
Forward
0 new messages