Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
4.3.0
-
None
-
None
-
Platform 180
Description
Reproduction path:
- cd plugin-sdk/implementation
- mvn test -Dtest=FileInstructionTest
[ERROR] testProcess(org.onehippo.cms7.essentials.plugin.sdk.instruction.FileInstructionTest) Time elapsed: 0.027 s <<< ERROR! java.lang.IllegalStateException: System property 'project.basedir' was null or empty. Please start your application with -D=project.basedir=/project/path at org.onehippo.cms7.essentials.plugin.sdk.instruction.FileInstructionTest.testProcess(FileInstructionTest.java:47)
This problem doesn't show up when running full test (all tests) and you're lucky another test already did setup the project.basedir property. But that depends on test execution order which is unreliable.