How do I run JUnit from NetBeans?

前端 未结 6 1340
臣服心动
臣服心动 2020-12-30 02:41

I\'ve been trying to understand how to start writing and running JUnit tests.

When I\'m reading this article:

http://junit.sourceforge.net/doc/testinfected/t

6条回答
  •  死守一世寂寞
    2020-12-30 03:02

    Had a similar issue. In Netbeans 7.0.1, what worked for me was to locate the project.xml file (i.e. {project}/nbproject/project.xml) and change:

            
    

    to:

            
                
            
    

    (in my case the test files are in the same dir as the source dir)

提交回复
热议问题