Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29923

Avoid LogTestWatchman stack trace on org.junit.AssumptionViolatedException

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.5
    • Component/s: Tests
    • Team:
      AT
    • Sprint:
      nxAT 11.x.31
    • Story Points:
      1

      Description

      When disabling tests with the assume* features, in functional tests, LogTestWatchman still logs the stack trace which is spurious output: this exception should be skipped for logging.

      Sample stack trace:

      20:42:14  2020-12-01 19:42:11,294 [main] ERROR [LogTestWatchman] Test 'org.nuxeo.functionaltests.explorer.nomode.ITExplorerAdminTest#testLivePartialRefDistribExport' failed
      20:42:14  org.junit.AssumptionViolatedException: got: <false>, expected: is <true>
      20:42:14  	at org.junit.Assume.assumeThat(Assume.java:106) ~[junit-4.13.jar:4.13]
      20:42:14  	at org.junit.Assume.assumeTrue(Assume.java:50) ~[junit-4.13.jar:4.13]
      20:42:14  	at org.nuxeo.functionaltests.explorer.nomode.ITExplorerAdminTest.testLivePartialRefDistribExport(ITExplorerAdminTest.java:192) ~[test-classes/:?]
      20:42:14  	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      20:42:14  	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      20:42:14  	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      20:42:14  	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
      20:42:14  	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) ~[junit-4.13.jar:4.13]
      20:42:14  	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) ~[junit-4.13.jar:4.13]
      20:42:14  	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) ~[junit-4.13.jar:4.13]
      20:42:14  	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) ~[junit-4.13.jar:4.13]
      20:42:14  	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) ~[junit-4.13.jar:4.13]
      20:42:14  	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) ~[junit-4.13.jar:4.13]
      20:42:14  	at org.nuxeo.functionaltests.LogTestWatchman$1.evaluate(LogTestWatchman.java:110) [nuxeo-functional-tests-11.3.56.jar:?]
      20:42:14  	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) [junit-4.13.jar:4.13]
      20:42:14  	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) [junit-4.13.jar:4.13]
      20:42:14  	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) [junit-4.13.jar:4.13]
      20:42:14  	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) [junit-4.13.jar:4.13]
      20:42:14  	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) [junit-4.13.jar:4.13]
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 10 minutes
                  10m