{"action":"opened","issue":{"url":"https://api.github.com/repos/approvals/ApprovalTests.Java/issues/36","repository_url":"https://api.github.com/repos/approvals/ApprovalTests.Java","labels_url":"https://api.github.com/repos/approvals/ApprovalTests.Java/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/approvals/ApprovalTests.Java/issues/36/comments","events_url":"https://api.github.com/repos/approvals/ApprovalTests.Java/issues/36/events","html_url":"https://github.com/approvals/ApprovalTests.Java/issues/36","id":307815929,"number":36,"title":"WIth JUnit 5, error message \"Could not find Junit/TestNg TestCase you are running\"","user":{"login":"ethanstrominger","id":32078396,"avatar_url":"https://avatars0.githubusercontent.com/u/32078396?v=4","gravatar_id":"","url":"https://api.github.com/users/ethanstrominger","html_url":"https://github.com/ethanstrominger","followers_url":"https://api.github.com/users/ethanstrominger/followers","following_url":"https://api.github.com/users/ethanstrominger/following{/other_user}","gists_url":"https://api.github.com/users/ethanstrominger/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanstrominger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanstrominger/subscriptions","organizations_url":"https://api.github.com/users/ethanstrominger/orgs","repos_url":"https://api.github.com/users/ethanstrominger/repos","events_url":"https://api.github.com/users/ethanstrominger/events{/privacy}","received_events_url":"https://api.github.com/users/ethanstrominger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-22T21:10:20Z","updated_at":"2018-03-22T21:10:20Z","closed_at":null,"author_association":"NONE","body":"Any suggestions how to fix?\r\n\r\njava.lang.RuntimeException: Could not find Junit/TestNg TestCase you are running\r\n\r\n\tat org.approvaltests.namer.AttributeStackSelector.selectElement(AttributeStackSelector.java:57)\r\n\tat com.spun.util.tests.TestUtils.getCurrentFileForMethod(TestUtils.java:265)\r\n\tat com.spun.util.tests.TestUtils.getCurrentFileForMethod(TestUtils.java:258)\r\n\tat org.approvaltests.namer.StackTraceNamer.<init>(StackTraceNamer.java:13)\r\n\tat org.approvaltests.Approvals$1.load(Approvals.java:53)\r\n\tat org.approvaltests.Approvals$1.load(Approvals.java:50)\r\n\tat org.approvaltests.Approvals.createApprovalNamer(Approvals.java:188)\r\n\tat org.approvaltests.Approvals.verify(Approvals.java:127)\r\n\tat org.approvaltests.Approvals.verify(Approvals.java:247)\r\n\tat com.company.ExtractMethodTest.TestPrintOwing(ExtractMethodTest.java:34)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:389)\r\n\tat org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:115)\r\n\tat org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:167)\r\n\tat org.junit.jupiter.engine.execution.ThrowableCollector.execute(ThrowableCollector.java:40)\r\n\tat org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:163)\r\n\tat org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:110)\r\n\tat org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:57)\r\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.lambda$execute$3(HierarchicalTestExecutor.java:83)\r\n\tat org.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66)\r\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:77)\r\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.lambda$null$2(HierarchicalTestExecutor.java:92)\r\n\tat java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)\r\n\tat java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)\r\n\tat java.util.Iterator.forEachRemaining(Iterator.java:116)\r\n\tat java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)\r\n\tat java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)\r\n\tat java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)\r\n\tat java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)\r\n\tat java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)\r\n\tat java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\r\n\tat java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)\r\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.lambda$execute$3(HierarchicalTestExecutor.java:92)\r\n\tat org.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66)\r\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:77)\r\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.lambda$null$2(HierarchicalTestExecutor.java:92)\r\n\tat java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)\r\n\tat java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)\r\n\tat java.util.Iterator.forEachRemaining(Iterator.java:116)\r\n\tat java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)\r\n\tat java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)\r\n\tat java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)\r\n\tat java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)\r\n\tat java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)\r\n\tat java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\r\n\tat java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)\r\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.lambda$execute$3(HierarchicalTestExecutor.java:92)\r\n\tat org.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66)\r\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:77)\r\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:51)\r\n\tat org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:43)\r\n\tat org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:170)\r\n\tat org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:154)\r\n\tat org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90)\r\n\tat com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:65)\r\n\tat com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)\r\n"}}
{"actor":{"display_login":"ethanstrominger"}}