cmrockwell commented on pull request #5: URL: https://github.com/apache/sling-org-apache-sling-junit-core/pull/5#issuecomment-733281786
> I think a similar setup would work for your tests, creating a distinct test bundle in the same junit-core repository and testing it via the invoker plugin? Happy to help with the "details" if needed. I tried setting the integration-testing approach using PAX. I pushed a [commit](https://github.com/apache/sling-org-apache-sling-junit-core/commit/b6de942fccb17f99fd44077c693afe55a2bcdfab) to a separate branch, SLING-9915-junit-annotation-int-tests for review. I've switched for the time being to Java 8, because the example project (sling-org-apache-sling-servlets-annotations) has builds errors with Java 11. Even with Java 8, my version fails. The system properties are null. Any pointers would be much appreciated. > [INFO] [INFO] Running org.apache.sling.junit.annotations.TestReferenceIT [INFO] <<<<<<<<<<<<<<<<<<<<<<< [INFO] Bundle File [INFO] null [INFO] jacoco [INFO] null [INFO] pax.vm.options [INFO] null [INFO] <<<<<<<<<<<<<<<<<<<<<<< [INFO] [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.456 s <<< FAILURE! - in org.apache.sling.junit.annotations.TestReferenceIT [INFO] [ERROR] org.apache.sling.junit.annotations.TestReferenceIT Time elapsed: 0.449 s <<< ERROR! [INFO] java.lang.reflect.InvocationTargetException [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [INFO] at java.lang.reflect.Method.invoke(Method.java:498) [INFO] at org.ops4j.pax.exam.junit.PaxExamServer.getConfigurationOptions(PaxExamServer.java:98) [INFO] at org.ops4j.pax.exam.junit.PaxExamServer.before(PaxExamServer.java:84) [INFO] at org.apache.sling.junit.annotations.TestReferenceIT$1.before(TestReferenceIT.java:56) [INFO] at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:50) [INFO] at org.junit.rules.RunRules.evaluate(RunRules.java:20) [INFO] at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) [INFO] at org.junit.runners.ParentRunner.run(ParentRunner.java:413) [INFO] at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) [INFO] at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) [INFO] at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) [INFO] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) [INFO] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:377) [INFO] at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:138) [INFO] at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:465) [INFO] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:451) [INFO] Caused by: java.lang.NullPointerException [INFO] at java.io.File.<init>(File.java:277) [INFO] at org.apache.sling.testing.paxexam.TestSupport.testBundle(TestSupport.java:103) [INFO] at org.apache.sling.junit.annotations.TestReferenceIT.configuration(TestReferenceIT.java:98) [INFO] ... 19 more ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org