Specify test method name prefix for test suite in junit 3
Posted
by
Marko Kocic
on Stack Overflow
See other posts from Stack Overflow
or by Marko Kocic
Published on 2011-11-25T16:37:31Z
Indexed on
2011/11/25
17:50 UTC
Read the original article
Hit count: 216
Is it possible to tell JUnit 3 to use additional method name prefix when looking up test method names?
The goal is to have additional tests running locally that should not be run on continuous integration server. CI server doesn't use test suites, it look up for all classes which name ends with "Test" and execute all methods that begins with "test".
The goal is to be able to locally run not only tests run by integration server, but also tests which method name starts with, for example "nocitest" or something like that.
I don't mind having to organize tests into tests suite locally, since CI is just ignoring them.
© Stack Overflow or respective owner