As I'm progressing trying to fix this. I have a few questions:
- is there a good test I can base my work within surefire-its?
- How to run an individual test.
I was looking at FailFastJUnitIT. and if I run this test individually
I get a NullPointerException.
I tried running from both commandlines and from the IDE.
So, If I did this:
mvn test -Prun-its -Dtest=FailFastJUnitIT
I would get:
[ERROR]
org.apache.maven.surefire.its.FailFastJUnitIT.org.apache.maven.surefire.its.FailFastJUnitIT.test()
Time elapsed: 0.002 s <<< FAILURE!
java.lang.NullPointerException
at java.base/java.util.HashMap.putMapEntries(HashMap.java:496)
at java.base/java.util.HashMap.putAll(HashMap.java:780)
at
org.apache.maven.surefire.its.fixture.MavenLauncher.sysProp(MavenLauncher.java:289)
at
org.apache.maven.surefire.its.AbstractFailFastIT.prepare(AbstractFailFastIT.java:99)
at
org.apache.maven.surefire.its.AbstractFailFastIT.test(AbstractFailFastIT.java:113)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
and If removed the call to sysprops (as the system property is not
passed in as a parameter from the sub-test) and I get an issue with
not being able to parse the version,
I have other questions but I will stick with these 2 for now and I
will ask for other questions as I can make some progress.
--
Clebert Suconic
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]