{ "report": { "type": "container", "name": "Production test", "status": "error", "start": 0, "duration": 0, "children": [ { "type": "container", "name": "JUnit Jupiter", "status": "error", "start": 0, "duration": 0, "children": [ { "type": "container", "name": "SampleTest", "status": "error", "start": 0, "duration": 0, "children": [ { "type": "test", "name": "aborted()", "status": "aborted", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "spam", "at": 0, "level": "info" } ] } ] }, { "type": "test", "name": "error()", "status": "error", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "spam", "at": 0, "level": "info" } ] }, { "type": "failure", "name": "java.lang.NoClassDefFoundError", "status": "error", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "java.lang.NoClassDefFoundError\n\tat com.yahoo.vespa.test.samples.SampleTest.error(SampleTest.java:87)\n", "at": 0, "level": "error" } ] } ] } ] }, { "type": "test", "name": "failing()", "status": "failed", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "spam", "at": 0, "level": "info" }, { "message": "com.yahoo.vespa.test.samples.SampleTest: I have a bad feeling about this", "at": 0, "level": "info" } ] }, { "type": "failure", "name": "org.opentest4j.AssertionFailedError: baz ==> expected: but was: ", "status": "failed", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "org.opentest4j.AssertionFailedError: baz ==> expected: but was: \n\tat org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)\n\tat org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)\n\tat org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)\n\tat org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1152)\n\tat com.yahoo.vespa.test.samples.SampleTest.failing(SampleTest.java:81)\n", "at": 0, "level": "error" } ] } ] } ] }, { "type": "test", "name": "ignored()", "status": "skipped", "start": 0, "duration": 0 }, { "type": "test", "name": "inconclusive(TestReporter)", "status": "inconclusive", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "spam", "at": 0, "level": "info" }, { "message": "I'm here with Erwin today; Erwin, what can you tell us about your cat?", "at": 0, "level": "info" } ] }, { "type": "failure", "name": "ai.vespa.hosted.cd.InconclusiveTestException: the cat is both dead _and_ alive", "status": "inconclusive", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "ai.vespa.hosted.cd.InconclusiveTestException: the cat is both dead _and_ alive\n\tat com.yahoo.vespa.test.samples.SampleTest.inconclusive(SampleTest.java:93)\n", "at": 0, "level": "warning" } ] } ] } ] }, { "type": "test", "name": "successful()", "status": "successful", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "spam", "at": 0, "level": "info" }, { "message": "com.yahoo.vespa.test.samples.SampleTest: ", "at": 0, "level": "info" }, { "message": "com.yahoo.vespa.test.samples.SampleTest: Very informative: \"\\n\": \n", "at": 0, "level": "info" }, { "message": "com.yahoo.vespa.test.samples.SampleTest: Oh no\njava.lang.IllegalArgumentException: error\n\tat com.yahoo.vespa.test.samples.SampleTest.successful(SampleTest.java:75)\nCaused by: java.lang.RuntimeException: wrapped\n\t... 1 more\n", "at": 0, "level": "warning" } ] } ] }, { "type": "container", "name": "Inner", "status": "failed", "start": 0, "duration": 0, "children": [ { "type": "container", "name": "others()", "status": "failed", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "spam", "at": 0, "level": "info" } ] }, { "type": "test", "name": "second", "status": "successful", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "Catch me if you can!", "at": 0, "level": "info" } ] } ] }, { "type": "test", "name": "third", "status": "failed", "start": 0, "duration": 0, "children": [ { "type": "failure", "name": "org.opentest4j.AssertionFailedError: no charm", "status": "failed", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "org.opentest4j.AssertionFailedError: no charm\n\tat org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:39)\n\tat org.junit.jupiter.api.Assertions.fail(Assertions.java:134)\n\tat com.yahoo.vespa.test.samples.SampleTest$Inner.lambda$others$1(SampleTest.java:105)\n", "at": 0, "level": "error" } ] } ] } ] } ] }, { "type": "test", "name": "first()", "status": "successful", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "spam", "at": 0, "level": "info" } ] } ] } ] }, { "type": "container", "name": "Skipped", "status": "skipped", "start": 0, "duration": 0, "children": [ { "type": "test", "name": "disabled()", "status": "skipped", "start": 0, "duration": 0 } ] } ] } ] }, { "type": "container", "name": "JUnit Jupiter", "status": "error", "start": 0, "duration": 0, "children": [ { "type": "container", "name": "FailingTestAndBothAftersTest", "status": "error", "start": 0, "duration": 0, "children": [ { "type": "test", "name": "test()", "status": "failed", "start": 0, "duration": 0, "children": [ { "type": "failure", "name": "org.opentest4j.AssertionFailedError", "status": "failed", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "org.opentest4j.AssertionFailedError\n\tat org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:35)\n\tat org.junit.jupiter.api.Assertions.fail(Assertions.java:115)\n\tat com.yahoo.vespa.test.samples.FailingTestAndBothAftersTest.test(FailingTestAndBothAftersTest.java:19)\n\tSuppressed: java.lang.RuntimeException\n\t\tat com.yahoo.vespa.test.samples.FailingTestAndBothAftersTest.moreFail(FailingTestAndBothAftersTest.java:16)\n", "at": 0, "level": "error" } ] } ] } ] }, { "type": "failure", "name": "java.lang.RuntimeException", "status": "error", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "java.lang.RuntimeException\n\tat com.yahoo.vespa.test.samples.FailingTestAndBothAftersTest.fail(FailingTestAndBothAftersTest.java:13)\n", "at": 0, "level": "error" } ] } ] } ] }, { "type": "container", "name": "WrongBeforeAllTest", "status": "error", "start": 0, "duration": 0, "children": [ { "type": "failure", "name": "org.junit.platform.commons.JUnitException: @BeforeAll method 'void com.yahoo.vespa.test.samples.WrongBeforeAllTest.wrong()' must be static unless the test class is annotated with @TestInstance(Lifecycle.PER_CLASS).", "status": "error", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "org.junit.platform.commons.JUnitException: @BeforeAll method 'void com.yahoo.vespa.test.samples.WrongBeforeAllTest.wrong()' must be static unless the test class is annotated with @TestInstance(Lifecycle.PER_CLASS).\n", "at": 0, "level": "error" } ] } ] }, { "type": "test", "name": "fest()", "status": "skipped", "start": 0, "duration": 0 }, { "type": "test", "name": "test()", "status": "skipped", "start": 0, "duration": 0 } ] }, { "type": "container", "name": "FailingExtensionTest", "status": "error", "start": 0, "duration": 0, "children": [ { "type": "test", "name": "test()", "status": "error", "start": 0, "duration": 0, "children": [ { "type": "failure", "name": "java.lang.NullPointerException", "status": "error", "start": 0, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "java.lang.NullPointerException\n\tat com.yahoo.vespa.test.samples.FailingExtensionTest$FailingExtension.(FailingExtensionTest.java:19)\n", "at": 0, "level": "error" } ] } ] } ] } ] } ] }, { "type": "failure", "name": "java.lang.ClassNotFoundException: School's out all summer!", "status": "error", "start": 12000, "duration": 0, "children": [ { "type": "output", "children": [ { "message": "java.lang.ClassNotFoundException: School's out all summer!\n", "at": 12000, "level": "error" } ] } ] } ] } }