This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 139146 - Test results not recorded?
Summary: Test results not recorded?
Status: VERIFIED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2008-07-07 15:44 UTC by Jesse Glick
Modified: 2008-07-09 09:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2008-07-07 15:44:15 UTC
http://konik-z2.czech.sun.com:8080/hudson/job/NB-Core-Build/937/testReport/

claims no failures. In fact the log says

[....]
    [junit] ########  testGCProjects  #######
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: testNewFile(org.netbeans.test.ide.IDEValidation):	FAILED
    [junit] Exception in setText
    [junit] org.netbeans.junit.AssertionFailedErrorException: Exception in setText
    [junit] 	at org.netbeans.jellytools.JellyTestCase.runBare(JellyTestCase.java:178)
[....]
    [junit] Nested Exception is:
    [junit] org.netbeans.jemmy.JemmyException: Exception in setText
    [junit] 	at org.netbeans.jemmy.QueueTool.invokeAndWait(QueueTool.java:436)
[....]
    [junit] 	at org.netbeans.test.ide.IDEValidation.testNewFile(IDEValidation.java:241)
    [junit] 	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:84)
    [junit] 	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:328)
    [junit] 	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:265)
    [junit] 	at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:344)
    [junit] 	at org.netbeans.jellytools.JellyTestCase.runBare(JellyTestCase.java:151)
    [junit] 	at org.netbeans.junit.NbTestCase.run(NbTestCase.java:205)
    [junit] 	at org.netbeans.junit.NbModuleSuite$S.runInRuntimeContainer(NbModuleSuite.java:518)
    [junit] 	at org.netbeans.junit.NbModuleSuite$S.run(NbModuleSuite.java:406)
    [junit] Inner exception:
    [junit] java.lang.NullPointerException
    [junit] 	at org.netbeans.modules.java.project.JavaTargetChooserPanel.isValidPackageName(JavaTargetChooserPanel.java:335)
[....]
    [junit] Testcase: testProjectsView(org.netbeans.test.ide.IDEValidation):	FAILED
    [junit] Wait next node loaded under parent [Projects, SampleProject [Main], Source Packages] when requested was [
Projects, SampleProject [Main], Source Packages, sample1 ]
    [junit] org.netbeans.junit.AssertionFailedErrorException: Wait next node loaded under parent [Projects,
SampleProject [Main], Source Packages] when requested was [ Projects, SampleProject [Main], Source Packages, sample1 ]
    [junit] 	at org.netbeans.jellytools.JellyTestCase.runBare(JellyTestCase.java:178)
[....]
    [junit] Test org.netbeans.test.ide.IDECommitValidationTest FAILED

Was the TEST-*.xml not correctly generated with an indication of a failure? (This is not a build artifact so it has been
deleted, but could perhaps be reproduced.) org.netbeans.test.** is not even listed in the test results page, which may
mean this file was not created, or there might be some Hudson bug parsing it.
Comment 1 Jaroslav Tulach 2008-07-08 07:40:56 UTC
Imho just wrong test results include. I changed it to:
real.workspace/*/build/test/**/results/*.xml
to cover nbbuild/build/test/results/*.xml
Comment 2 Jesse Glick 2008-07-08 13:49:41 UTC
The pattern is overinclusive:

http://konik-z2.czech.sun.com:8080/hudson/job/NB-Core-Build/943/testReport/

It catches

ide.kit/build/test/qa-functional/work/userdir0/SampleProject/build/test/results/TEST-sample1.SampleClass2Test.xml 

Perhaps try

real.workspace/*/build/test/*/results/*.xml,real.workspace/nbbuild/build/test/results/*.xml
Comment 3 Jesse Glick 2008-07-08 20:20:56 UTC
Changed pattern as suggested.
Comment 4 Jaroslav Tulach 2008-07-09 09:27:13 UTC
Thanks.