hfurubotten / autograder

Automatic management and build tool for lab assignments. Moved to organization autograde: https://github.com/autograde
https://github.com/autograde
Other
14 stars 7 forks source link

ci-log: filter button for stack trace information #65

Open meling opened 8 years ago

meling commented 8 years ago

JUnit tests may produce long stack traces that make it difficult to view the interesting data returned from the unit test. It would be desirable to have a filter button that can be toggled to hide exception details, e.g filtering could be done for each line starting with \d+: at. See the example partial dump below:

33: Time: 0.027
34: There were 11 failures:
35: 1) testSum(test.java.no.uis.intro.FibonacciSequenceTest)
36: java.lang.AssertionError: expected:<1> but was:<2>
37: at org.junit.Assert.fail(Assert.java:88)
38: at org.junit.Assert.failNotEquals(Assert.java:743)
39: at org.junit.Assert.assertEquals(Assert.java:118)
40: at org.junit.Assert.assertEquals(Assert.java:555)
41: at org.junit.Assert.assertEquals(Assert.java:542)
42: at test.java.no.uis.intro.FibonacciSequenceTest.testSum(FibonacciSequenceTest.java:90)
43: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
44: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
45: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
46: at java.lang.reflect.Method.invoke(Method.java:606)
47: at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
48: at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
49: at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
50: at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
51: at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
52: at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
53: at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
54: at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)