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: | Add logging and golden files capability to XTest | ||
---|---|---|---|
Product: | obsolete | Reporter: | Jiri Skrivanek <jskrivanek> |
Component: | xtest | Assignee: | issues@obsolete <issues> |
Status: | CLOSED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 3.x | ||
Hardware: | Sun | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | Loggin capability implementation |
Description
Jiri Skrivanek
2001-11-02 09:14:11 UTC
Created attachment 3241 [details]
Loggin capability implementation
In my opinion, golden fiels functionality should be contained in a new class, which would inherit from NbTestCase, because this type of tests is highly specialized. All testcases requiring work with golden files would have to inherit from this class. Merging this functionality to the original NbTestCase would make this class unneccessarily complex and and usage of methods like tearDown() would be more complicated. I also support using unique log/golden file for each test method, because there are many cases in which one test class can contain several testcases, each using its log and golden files. On the other hand, logging possibility (writing to *.log file) should be available in the original NbTestCase class, because this functionality might be used much more often than golden files. Logging capability and golden files support was implemented to org.netbeans.junit.NbTestCase.java in junit module. So all classes inheriting from NbTestCase (recommended base class for Unit tests intended to be tested via XTest framework). Verified. |