TommasoD / progetto-sagrada

Ingegneria Software 2018
0 stars 0 forks source link

Test issues #2

Closed valerio-castelli closed 6 years ago

valerio-castelli commented 6 years ago

Good afternoon, There is an issue with your pom.xml configuration that prevents Jenkins from successfully identifying and building your tests. Please follow the "junit 5 maven" guide that you can find on Google to fix the pom and make sure that you are able to run your tests within IntelliJ using a maven build configuration with "test" as goal.

ingconti commented 6 years ago

now You have:

[WARNING] [WARNING] Some problems were encountered while building the effective model for it.polimi.ingsw:LM50:jar:1.0-SNAPSHOT [WARNING] 'dependencies.dependency.version' for org.junit.jupiter:junit-jupiter-api:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 23, column 16 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING]

pls give a try to fix.

[JENKINS] Recording test results[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.BuildInfoRecorder$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/

[INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ LM50 --- [INFO] Building jar: /var/jenkins_home/workspace/LM50/target/LM50-1.0-SNAPSHOT.jar [WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver$2; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/ [WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenFingerprinter$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/

davidedalcortivo commented 6 years ago

We tried to modify the pom.xml file changing one line according to the following warning:

[WARNING] 'dependencies.dependency.version' for org.junit.jupiter:junit-jupiter-api:jar is either LATEST or RELEASE (both of them are being deprecated)

The line \RELEASE\ is now \5.2.0\. We also added this line just below the version one: \test\.

Can you please check if the issue is now solved?

valerio-castelli commented 6 years ago

Fixed!