Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » No Tests found
No Tests found [message #892238] Wed, 27 June 2012 13:22 Go to next message
Bogdan Bachis is currently offline Bogdan BachisFriend
Messages: 2
Registered: June 2012
Junior Member
Hallo everybody,

I'm trying to test PL\SQL Packages using a Maven PlugIn called utplsql. I've installed Hudson and created a job that should compile and test 1 PLSQL Package. When I'm running this job, Hudson is throwing an mavenExecutionResult exception:


[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ plsqltest ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ plsqltest ---
[INFO] No tests to run.
[INFO] Surefire report directory: C:\Temp\Hudson\target\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[HUDSON] Zeichne Testergebnisse auf
projectFailed de.psb-bonn.plsqltest:plsqltest:1.0-SNAPSHOT
[HUDSON] Archiving C:\Temp\Hudson\test_hudson_pom.xml to C:\hudson\jobs\TestPLSQL\modules\de.psb-bonn.plsqltest$plsqltest\builds\2012-06-27_15-03-34\archive\de.psb-bonn.plsqltest\plsqltest\1.0-SNAPSHOT\test_hudson_pom.xml
sessionEnded
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.938s
[INFO] Finished at: Wed Jun 27 15:03:38 CEST 2012
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
mavenExecutionResult exceptions not empty
org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException



I thought my pom-Files was wrong, so I tried to run it directly in Maven, to my surprise the job run here successfully:

[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ plsqltest ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ plsqltest ---
[INFO] No tests to run.
[INFO] Surefire report directory: C:\Temp\Hudson\target\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-utplsql-plugin:1.31:execute (run-plsql-test-packages) @ plsqltest ---
[INFO] Running UTPLSQL tests for package bl_current_accounts
[INFO]
------------------------------------
TESTS
------------------------------------
utplsql:Testing package bl_current_accounts
Successes: 10, Failures: 0

Results:
Tests run: 10, Failures: 0

[INFO] bl_current_accounts, failed=0, passed=10, total=10
[INFO]



Is there anybody how has an idea why the job is not running in Hudson?

Re: No Tests found [message #892364 is a reply to message #892238] Wed, 27 June 2012 21:56 Go to previous messageGo to next message
Steve Christou is currently offline Steve ChristouFriend
Messages: 125
Registered: June 2012
Location: Milwaukee, Wisconsin
Senior Member

Does it give any other stack trace information other than "org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException". The only reason I say this is because I am curious if this exception is due to no results file in the surefire-reports or the archiving couldn't archive the results and could not because there was nothing to archive. Also if you are using a maven project, I would advise switching to a free-style project and using the maven 3 build step instead.

/**
 * @author Steven Christou
 * @dev    Hudson-ci
 */
Re: No Tests found [message #892404 is a reply to message #892364] Thu, 28 June 2012 06:58 Go to previous message
Bogdan Bachis is currently offline Bogdan BachisFriend
Messages: 2
Registered: June 2012
Junior Member
Hallo Steve,

your solution worked for me (I've created the project indeed as a maven project). After switching it to a free-style project it runs successfully.

Thank you for your help.

Previous Topic:users & Roles administration
Next Topic:Hudson SVN credential exceptions
Goto Forum:
  


Current Time: Fri Apr 26 10:11:07 GMT 2024

Powered by FUDForum. Page generated in 0.03120 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top