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 253791 - Test file on web project failing.
Summary: Test file on web project failing.
Status: RESOLVED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Test Specifications (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-25 22:50 UTC by svkirans
Modified: 2015-08-26 16:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
junit tests failing (177.61 KB, image/jpeg)
2015-07-25 22:50 UTC, svkirans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description svkirans 2015-07-25 22:50:24 UTC
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.
Comment 1 Tomas Stupka 2015-07-27 12:01:15 UTC
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.
Comment 2 skygo 2015-08-26 16:33:40 UTC
I fix this issue by excpecting a failure in test