gematik / TI-Messenger-Testsuite

This Project contains the testsuite for the TI-Messenger. It tests multiple TI-Messenger instances against each other for interoperability.
Apache License 2.0
10 stars 3 forks source link

save_reports: No such file or directory #46

Open esemusa opened 1 week ago

esemusa commented 1 week ago

In the save_reports step, we encountered the following error:

[INFO] --- exec:3.0.0:exec (save_reports) @ TI-Messenger-Testsuite ---
cp: _<PATH>_/target/site/serenity/*: No such file or directory
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
    at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404)
    at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166)
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:982)
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:929)
    at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:457)
    ...

We were able to resolve this issue by modifying this section in the pom.xml: https://github.com/gematik/TI-Messenger-Testsuite/blob/316ed40d8b5cc9e74600055626689b74b0522e4f/pom.xml#L637

Specifically, we removed the wildcard * or replaced it with .. Both of the following lines worked for us: <argument>${project.build.directory}/site/serenity/</argument> <argument>${project.build.directory}/site/serenity/.</argument>

We are working with macOS.

Beff42 commented 2 days ago

Thanks for reporting this! We will internally check, if this also works for our Linux and Windows environments. If that's the case, we will change the part accordingly.