|
|
Re: No GUI Help
|
Posted: Feb 10, 2003 8:30 PM
|
|
> However, it keep poping up a GUI all the time!!!! Which is > a big issue. We want to setup the test suite for all the > object. Then every night, when the system rebuild itself, > we want to run all the suite in batch mode. When error > occure in a class, I want to create a report, the mail > that report it to the lead (which class, which method is > broken) so the lead can take action and ask the engineer > to fix the broken class (or maybe rollback to the previous > one. > > So you understand that it need to be GUILess and when it > is done testing, it needs to stop! > > Is this something artima could do?
Yes. For complete details, see:
http://www.artima.com/suiterunner/tutorial6.html
In short, to get rid of the GUI, you need to exclude -g from the command line (or the recipe file) when you start SuiteRunner. For example, SuiteRunner will report test results to the standard output if you give it a -o option, as in:
java -jar suiterunner-1.0beta2.jar -p "example" -o -s com.artima.examples.account.ex6test.AccountSuite
If you want to send an email, you can create your own Reporter that keeps track of errors and then sends an email at the conclusion of the test run. At this point, the best way to create a Reporter is probably look at the code for org.suiterunner.PrintReporter. Before long I'll be publishing an article about creating your own reporters. Once you create your own Reporter, you can get SuiteRunner to use it by using the -r <reporter-class-name> command line option.
|
|