mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 00:02:06 +01:00
Sinttest: Always record why test class could not be constructed
This commit is contained in:
parent
e4c31541e0
commit
77f466560b
1 changed files with 4 additions and 8 deletions
|
@ -293,14 +293,10 @@ public class SmackIntegrationTestFramework {
|
|||
}
|
||||
catch (InvocationTargetException e) {
|
||||
Throwable cause = e.getCause();
|
||||
if (cause instanceof TestNotPossibleException) {
|
||||
throwFatalException(cause);
|
||||
|
||||
testRunResult.impossibleTestClasses.put(testClass, cause.getMessage());
|
||||
testRunResult.numberOfPossibleTests.addAndGet(-detectedTestMethodsCount);
|
||||
}
|
||||
else {
|
||||
throwFatalException(cause);
|
||||
LOGGER.log(Level.WARNING, "Could not construct test class", e);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
catch (InstantiationException | IllegalAccessException | IllegalArgumentException e) {
|
||||
|
|
Loading…
Reference in a new issue