I am a bit confused.
How can I get TestNG to report an error for a test?
// ... @DataProvider(name = "foo") public Object[][] provideData () { throw new SomeRuntimeException("Some error occurred. The test configuration " + "is somehow incorrect."); }
This will simply skip the test. An exception is not even logged. Moving this object to the constructor will simply throw an exception, but this is not enough ...
I need a message with a lot of fat.
Currently, using a special (self-testing) method, a task is being performed that at least shows some test failure ...
In any case, it would be nice to know what the definition of testNG error looks like.
Thanks for any tips!
source share