How you can run the JUnit tests using TestNG?
How you can run the JUnit tests using TestNG?
+1
I'm also wanting to know how to use testNG to run Junit tests
V8PR are the UK’s best online retailer for vaping and eCigarette supplies. We have over 2000 items and are registered stockist of all the major vaping brands, including; Aspire, Eleaf, SMOK, Wismec plus many more. Choose from over 200 flavours of TPD and Shortfill eJuice. Visit us today for Free UK Delivery: https://v8pr.uk
TestNG can automatically recognize and run JUnit tests, so you can use TestNG as a runner for all your existing tests and write new tests using TestNG.
All you have to do is to put JUnit library on the TestNG classpath, so it can find and use JUnit classes, change your test runner from JUnit to TestNG in Ant and then run TestNG in "mixed" mode. This way you can have all your tests in the same project, even in the same package, and start using TestNG. This approach also allows you to convert your existing JUnit tests to TestNG incrementally.
|
Bookmarks