java - TestNG runs no test from console -
i installed netbeans 8.0.1 on computer , used create test suite :
<?xml version='1.0' encoding='utf-8' ?> <!doctype suite system "http://testng.org/testng-1.0.dtd" > <suite name="testing"> <test name="suite"> <packages> <package name="mypackage.tests"/> </packages> </test> </suite>
in mypackage.tests there test class, simple 1 :
[package, imports] public class tests001 { public tests001 () { } @test public void fail() { assertfalse(true); }
in netbeans, launched test right-clicking the.xml file , selecting 'test file'. works - or rather, correctly fails - intended result now.
but need launch console, run :
> java org.testng.testng testing.xml
and :
=============================================== testing total tests run: 0, failures: 0, skips: 0 ===============================================
no test run. can't find out why : test class , methods public ; java configured correctly (jdk 1.8.0_25) , set classpath
c:\program files\netbeans 8.0.1\platform\modules\ext\testng-6.8.1-dist.jar
i must have forgotten something... or there way, console, ask netbeans proceed test ?
Comments
Post a Comment