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: | Test file on web project failing. | ||
---|---|---|---|
Product: | qa | Reporter: | svkirans |
Component: | Test Specifications | Assignee: | issues@qa <issues> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | svkirans |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Other | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | junit tests failing |
if there is sometinhg wrong with the test spec, then the test spec has to be fixed. If a test is failing, then either the tested code, or the test has to be fixed. maven project isn't responsible for that. I fix this issue by excpecting a failure in test |
Created attachment 154895 [details] junit tests failing This is regarding Test file test case in maven in 8.1 beta. Some how the link stopped showing up here. There are 2 issues here. One is related to test case. The steps in the test case to create a Junit test class are not very clear. I think it should be the below. Create new JUnit test for MavenPrjServlet (New > JUnit > Test For Existing Class , browse for MavenPrjServlet) and invoke Test action on it. Create a new JUnit test for MavenPrjServlet by selecting menu File --> New File --> Unit Tests(In categories) --> Test for existing class. Then browse and select MavenPrjServlet and then click on Finish to add a Junit class. Select Test action on MavenPrjServlet And once the tests are running, all the 4 tests are failing. So I think this test case is failing.