I'm using a rake task to run the test suites of my application.
I can see that when I launch the task it run the command
ruby -I"lib:test" -I"[...]/lib" "[...]/lib/rake/rake_test_loader.rb" "vendor/plugins/shop/test/**/*_test.rb"
Where [...]
is the path to the rake gem in my gemset.
When I run the task, I got some warnings and some .
which means some tests pass but I end up with terminated
Log example :
...................................... 7431 Terminated
Notice that 7431 is the PID.
I cannot find any information about this case, verbose or trace option do not help me to figure out where my test suite is broken.
Is anybody knows what can I do to fix this ?
I don't know, what process creates the "Terminated"-message, but you could try the following:
Add a
to all of your tests.
Example:
results in
The test is stopped and you don't see where. I hope this is a similar situation to your "Terminate"-message.
Now add some code:
This results in:
The last mentioned
test_2
is the one with the problem.You may also add the
setup
andteardown
to each TestCase (but if you have own definitions ot setup/teardown they will not contain the testcode).Don't forget to remove the code - it is only to identify where your problem may be.