JUnit test result report

1,174 views
Skip to first unread message

GBANE FETIGUE

unread,
Dec 7, 2016, 4:27:17 PM12/7/16
to Jenkins Users
Hi,
I have added a JUnit plugins to my project and it keep telling me "
ERROR: Step ‘Publish JUnit test result report’ failed: Test reports were found but none of them are new. Did tests run?"
Here is the build :

[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/workspace/anypoint-account-creation-api-soap
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url g...@bitbucket.org:mountainstatesoftware/anypoint-account-creation-api.git # timeout=10
Fetching upstream changes from g...@bitbucket.org:mountainstatesoftware/anypoint-account-creation-api.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress g...@bitbucket.org:mountainstatesoftware/anypoint-account-creation-api.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/soapui^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/soapui^{commit} # timeout=10
Checking out Revision f37886b623f9476a2ab9e4e3dc238fed066e716f (refs/remotes/origin/soapui)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f f37886b623f9476a2ab9e4e3dc238fed066e716f
 > git rev-list f37886b623f9476a2ab9e4e3dc238fed066e716f # timeout=10
[anypoint-account-creation-api-soap] $ /usr/local/apache-maven-3.3.9/bin/mvn -f pom.xml test
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Mule anypoint-account-api Application 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for javax.script:jruby-engine:jar:jdk14:1.1 is missing, no dependency information available
[INFO] 
[INFO] --- mule-app-maven-plugin:1.1:attach-test-resources (default-attach-test-resources) @ anypoint-account-api ---
[INFO] attaching test resource /var/lib/jenkins/workspace/anypoint-account-creation-api-soap/src/main/app
[INFO] 
[INFO] --- build-helper-maven-plugin:1.7:add-resource (add-resource) @ anypoint-account-api ---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ anypoint-account-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 5 resources
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/anypoint-account-creation-api-soap/mappings
[INFO] Copying 3 resources
[INFO] 
[INFO] --- mule-app-maven-plugin:1.1:filter-resources (default-filter-resources) @ anypoint-account-api ---
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ anypoint-account-api ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ anypoint-account-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 5 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.0:testCompile (default-testCompile) @ anypoint-account-api ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ anypoint-account-api ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.701 s
[INFO] Finished at: 2016-12-07T21:23:46+00:00
[INFO] Final Memory: 14M/34M
[INFO] ------------------------------------------------------------------------
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: Test reports were found but none of them are new. Did tests run? 
For example, /var/lib/jenkins/workspace/anypoint-account-creation-api-soap/pom.xml is 7 min 36 sec old

 Finished: FAILURE

any ideas ?

xwyxw

unread,
Dec 8, 2016, 12:31:32 AM12/8/16
to Jenkins Users
this plugin check the time stamp of the JUnit file and it is not the latest one it will complain about it. Try to manually remove the file before the build and check if your system regenerate the file if not well there is the issue.

Guillermo Díaz Villegas - Ceiba Software

unread,
Aug 15, 2018, 5:15:06 PM8/15/18
to Jenkins Users
Try change the pattern '**/TEST-*.xml'


Este mensaje, incluido su adjunto, es confidencial y puede ser privilegiado. Si usted no es su destinatario, por favor notifique al emisor, luego destruya la comunicación y todas las copias. Usted no debe copiar, distribuir y/o revelar esta comunicación parcial o totalmente sin autorización del emisor.
This message, including attachments, is confidential and may be privileged. If you are not an intended recipient, please notify the sender then delete and destroy the original message and all copies. You should not copy, forward and/or disclose this message, in whole or in part, without permission of the sender.

arch

unread,
Aug 15, 2018, 10:35:29 PM8/15/18
to jenkins...@googlegroups.com
Could you post your report files?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/79fa2fb1-fed9-49c0-9a3d-e15f27b02410%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages