Wayne Fay on 22/03/11 17:03, wrote:
I need to be able to fail tests if the operations they perform are too slow.
...
write the unit test with a simple test on the number seconds elapsed.
...
I'm testing a business object that writes stuff to the database through
DAOs, and my performance bottleneck is either the database indexing, or the

First off, what you are describing is not a (classical) unit test, its
an integration test.

What you're describing can be easily handled with JUnit 4's timeout
parameter. There are similar options in TestNG:
http://stackoverflow.com/questions/350941/timing-out-tests-in-testng

Maven has support for Integration Testing via the failsafe plugin:
http://communitymapbuilder.org/display/MAVENUSER/Maven+and+Integration+Testing

I'm so glad I posted that question! Thanks v. much. I should have figured junit4 would be worth checking as well.

Regards
Adam

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to