I'm wondering how should test reporter be configured. I mean, if you
code, then things are easy, you could do something like (using setters
or constructor, whatever):
ITestReporter myReporter = new MyReporter();
myReporter.setX
myReporter.setY
testNg.setListener(myReporter);
testNg.run();
That is obvious. But what about if you use Maven surefire, or Ant
task, or Gradle? Then you end up passing name of a class (i.e.
MyReporter.class) and not an object, which means you can't configure
it (can you?).
The question is, how can you configure your report in such case?
Should you look for some myreport.properties file on classpath and
read your configuration from there? What would you recommmend?
--
Regards / Pozdrawiam
Tomek Kaczanowski
--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To post to this group, send email to testn...@googlegroups.com.
To unsubscribe from this group, send email to testng-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-dev?hl=en.