OWASP / SecurityShepherd

Web and mobile application security training platform
https://owasp.org/www-project-security-shepherd/
GNU General Public License v3.0
1.33k stars 450 forks source link

[BUG] Integration Tests are not running #739

Open ismisepaul opened 1 year ago

ismisepaul commented 1 year ago

Set up to run here: https://github.com/OWASP/SecurityShepherd/blob/00310cf2b73ed98843c653490a4be274de4fb896/.github/workflows/test.yml#L75

Not running https://github.com/OWASP/SecurityShepherd/actions/runs/3624691122/jobs/6111969603#step:8:1336

[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.22.2:verify (integration-tests) @ owaspSecurityShepherd ---
[INFO] 
[INFO] --- docker-maven-plugin:0.40.1:stop (stop) @ owaspSecurityShepherd ---
[INFO] DOCKER> [mongo:4.1.13]: Stop and removed container 4ea7f3dcb572 after 0 ms
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  43.380 s
[INFO] Finished at: 2022-12-05T22:57:44Z
[INFO] ------------------------------------------------------------------------

Trying to solve in the branch update-servers https://github.com/OWASP/SecurityShepherd/compare/dev...update-servers

ismisepaul commented 1 year ago

Tests run on 2.19

  <artifactId>maven-failsafe-plugin</artifactId>
  <version>2.19</version>

When upgrading from a Surefire version prior to 2.7, the build can be run with the flag -Dsurefire.junit4.upgradecheck. This will perform a check and notify you of any invalid tests that will not be run with this version of Surefire (and the build fails). This is only meant to be used as a tool when upgrading to check that all expected tests will be run. It is a transitional feature that will be removed in a future version of surefire.

https://maven.apache.org/surefire/maven-failsafe-plugin/examples/junit.html#