mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Suppress debug logging for assumption violations
In the light test we are wrapping logging around test run only, but not setUp or teardown. Therefore when debug output is empty, we are logging nothing. In heavy test for better diagnostics we are wrapping tests with setUp and tearDown and setUp is always debugging something, so buffer is not empty. With current solution we just wont log anything if assumption violation happened. GitOrigin-RevId: dc412ea9385a148a88bc465caa5b0547accc3a71
This commit is contained in:
committed by
intellij-monorepo-bot
parent
864f81ea17
commit
2142bbafe8
@@ -534,6 +534,10 @@ public abstract class UsefulTestCase extends TestCase {
|
||||
testRunnable.run();
|
||||
success = true;
|
||||
}
|
||||
catch (AssumptionViolatedException e) {
|
||||
success = true;
|
||||
throw e;
|
||||
}
|
||||
finally {
|
||||
TestLoggerFactory.onTestFinished(success);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user