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.
Summary: | JUnit must display the result tree while executing a test suite | ||
---|---|---|---|
Product: | java | Reporter: | psecheresse <psecheresse> |
Component: | JUnit | Assignee: | cms <cms> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | olangr |
Priority: | P1 | Keywords: | USABILITY |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
psecheresse
2008-09-02 04:24:35 UTC
Accepted. This is definitely doable but I do not have enough time to implement it is NB 6.5 (too many bugs to fix). Removing the UI keyword, if any specific attention of UI/HIE folks is needed, please let me know. Correct,no attention to the specific attention of UI/HIE folks is needed, the usability is more the point. Do you need that I write a complete use case to have a better idea for a version 7 of a cool unit test feature? Probably a question for mpetras. I think the use case for the requested enhancement is descriptive enough. But if you sum up all the weaknesses of the unit test support that prevent you from using NetBeans in your company, I will definitely appreciate it. The main weaknesses of the current unit test support are: - unable to see the result of each test as soon as the test is executed so you can interrupt as soon as you see a critical error - unable to keep the history of previous run including the interrupted ones - unable to run only the failing tests from a previous test suite from the history (see issue 84523) - unable to run only one test method in a test case from the history (useful when you have one test for a core behaviour that fails and most of the tests depend on this core behaviour so you need to fix first the core behaviour) Sorry for this late answer, I was away for a while. Something simple but very useful: a counter with the number of tests runs/total, Errors count and Failures count. When I see the failure counter going wild while the test is executing, I know that the test can be interrupted immediately. I tested the version 6.5RC2, it contains some very good improvements that are part of this request: the result is displayed even I interrupt the test suite, the 'show failure only' filter is working. I can rerun a method by right clicking but only when I create the test from a new project using JUnit4. Integrated into 'main-golden', will be available in build *200812221122* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9211feffa130 User: Michael Chernyshov <cms@netbeans.org> Log: #145850 [JUnit must display the result tree while executing a test suite] The issue itself is fixed but the fix caused a regression: numbers of failed/passed/total tests are not calculated properly now. Need to synchronize test execution and results exposing threads. Will mark the request as "fixed" when synchronization is added (in progress currently). Integrated into 'main-golden', will be available in build *200812260201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d25dbf986339 User: Michael Chernyshov <cms@netbeans.org> Log: #145850 fix, part two (fixed regression in incorrect test numbers calculation) Regressions fixed. Since other requests mentioned here are covered by another enhancement issues, closing this one as fixed. |