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 193360 - [70cat] AssertionError: See bug #185544 Please, provide details about your test run: JUnit version, a way how tests are launched, kind of the project and so on. Description of your test environment, a sam
Summary: [70cat] AssertionError: See bug #185544 Please, provide details about your t...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks: 227096
  Show dependency tree
 
Reported: 2010-12-14 09:57 UTC by aquaglia
Modified: 2013-03-14 02:06 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 174982


Attachments
stacktrace (1.79 KB, text/plain)
2010-12-14 09:57 UTC, aquaglia
Details
stacktrace (1.78 KB, text/plain)
2011-01-18 19:00 UTC, javydreamercsw
Details
Sample project (7.16 MB, application/x-zip-compressed)
2011-01-19 14:54 UTC, javydreamercsw
Details
stacktrace (1.98 KB, text/plain)
2012-03-26 15:37 UTC, jmichelberger
Details
stacktrace (2.01 KB, text/plain)
2013-03-06 16:00 UTC, Jesse Glick
Details
stacktrace (2.01 KB, text/plain)
2013-03-11 16:27 UTC, Ondrej Vrabec
Details
stacktrace (2.01 KB, text/plain)
2013-03-12 14:00 UTC, Maksim Khramov
Details
stacktrace (2.01 KB, text/plain)
2013-03-12 15:45 UTC, Tomas Stupka
Details
stacktrace (2.01 KB, text/plain)
2013-03-12 16:39 UTC, Tomas Danek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aquaglia 2010-12-14 09:57:52 UTC
This bug was originally marked as duplicate of bug 146092, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201012100001)
VM: Java HotSpot(TM) Client VM, 20.0-b02, Java(TM) SE Runtime Environment, 1.7.0-ea-b118
OS: Windows XP

User Comments:
aquaglia: Running JUnit Tests

pbw: My environment is a MacBookPro with the current Apple Java distribution
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
OS X 10.6.4

Download LifeRay Portal 6 GA 3 sources, liferay-portal-src-6.0.5.zip from http://sourceforge.net/projects/lportal/files/

These sources include a NetBeans project. There is an error in the project.xml file in the address of groovy.jar. However, I wasn't building from the project.

I removed the nbproject directory, and created a new Java project based on existing sources. Note, just a Java application, not a web project. I did not specify any libraries at the first pass. I then iterated a process of examining the error badges, and adding blocks of jar files from the lib directories, then re-scanning the project. This works out the problems with scanning very comprehensively. It took me over 12 hours to clear all of the badges, looking for the minima




Stacktrace: 
java.lang.AssertionError: See bug #185544 
Please, provide details about your test run: 
JUnit version, a way how tests are launched, 
kind of the project and so on. 
Description of your test environment, a sample 
project and steps to reproduce this bug will be 
highly appreciated.
Cause of this error is the JUnit message about 
execution of the tests doesn't match for usual regexp pattern: 
message: "Tests run: 1, Failures: 0, Errors: 0, Tim"
pattern: "Tests run: +([0-9]+), +Failures: +([0-9]+), +Errors: +([0-9]+), +Time elapsed: +(.+)s(?:ec(?:ond)?(?:s|\(s\))?)?
   at org.netbeans.modules.junit.output.JUnitOutputReader.messageLogged(JUnitOutputReader.java:344)
   at org.netbeans.modules.junit.output.JUnitAntLogger.messageLogged(JUnitAntLogger.java:286)
   at org.apache.tools.ant.module.bridge.impl.NbBuildLogger.messageLogged(NbBuildLogger.java:588)
   at org.apache.tools.ant.Project.fireMessageLoggedEvent(Project.java:2252)
   at org.apache.tools.ant.Project.fireMessageLogged(Project.java:2351)
   at org.apache.tools.ant.Project.log(Project.java:480)
Comment 1 aquaglia 2010-12-14 09:57:55 UTC
Created attachment 104049 [details]
stacktrace
Comment 2 javydreamercsw 2011-01-18 19:00:25 UTC
Created attachment 105112 [details]
stacktrace

108 Tests, JUnit 4.8.2. Tests were launched via right click on project>Test
Comment 3 javydreamercsw 2011-01-19 14:54:24 UTC
Created attachment 105151 [details]
Sample project

Run tests from the jWrestling project. I didn't get the issue on today's build (2011011901000)
Comment 4 jmichelberger 2012-03-26 15:37:36 UTC
Created attachment 117267 [details]
stacktrace
Comment 5 Jesse Glick 2013-03-06 16:00:17 UTC
Created attachment 132275 [details]
stacktrace

Using Ctrl-F6 to run individual unit tests in an autoproject (Apache Ant).
Comment 6 Ondrej Vrabec 2013-03-11 16:27:38 UTC
Created attachment 132470 [details]
stacktrace

simply running a test that fails and throws an ArrayIndexOutOfBoundsException
Comment 7 Maksim Khramov 2013-03-12 14:00:38 UTC
Created attachment 132516 [details]
stacktrace

Product Version: NetBeans IDE Dev (Build 201303112300)
JSF 1.2 Web project
JUNIt 4.10

testcase
    private String html = "Hello World";
    @Test
    public void hello() {
        String result = Jsoup.parse(html).text();
        System.out.println(result);
    }
Exception throws on invoke Run File command from editor popup menu
Comment 8 Tomas Stupka 2013-03-12 15:45:39 UTC
Created attachment 132522 [details]
stacktrace

started a test
Comment 9 Tomas Danek 2013-03-12 16:39:39 UTC
Created attachment 132524 [details]
stacktrace

running OutlineView218096Test in openide.explorer. Running from IDE as test-single
Comment 10 Theofanis Oikonomou 2013-03-13 12:08:25 UTC
I think that the latest reports are caused by updating of ant in bug 227096. The 1.9.0 ant version comes with junit 4.11 which causes the issues seen for the last days/week. I will work on a fix.
Comment 11 Theofanis Oikonomou 2013-03-13 12:21:23 UTC
Changeset: 9137b6e5487d
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2013-03-13 13:19
Message:
Comment 12 Jesse Glick 2013-03-13 13:20:30 UTC
No fix version?

(In reply to comment #10)
> I think that the latest reports are caused by updating of ant in bug 227096.

FWIW mine (663199) is from several days prior to the Ant upgrade, but I was running tests from Ant itself so it may have picked up classes from the revised test runner.

The fix looks wrong since JUnitOutputReader will now match the new regexp but attempt to call suiteFinished with the skip count interpreted as a duration.

(And is there a bug open for the fact that the test runner window does not display skipped tests?)
Comment 13 Theofanis Oikonomou 2013-03-13 16:22:35 UTC
Changeset: f4df84c0d4dc
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2013-03-13 17:20
Message:
Comment 14 Theofanis Oikonomou 2013-03-13 16:27:47 UTC
(In reply to comment #12)
> (And is there a bug open for the fact that the test runner window does not
> display skipped tests?)

I guess bug 212622 is what you are looking for
Comment 15 Quality Engineering 2013-03-14 02:06:57 UTC
Integrated into 'main-golden', will be available in build *201303132300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9137b6e5487d
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Issue #193360 - [70cat] AssertionError: See bug #185544  Please, provide details about your test run:  JUnit version, a way how tests are launched,  kind of the project and so on.  Description of your test environment, a sam