View Full Version : How you can run the JUnit tests using TestNG?
warrantyau
12-18-2019, 03:18 AM
How you can run the JUnit tests using TestNG?
V8PR UK
12-22-2019, 08:34 PM
+1
I'm also wanting to know how to use testNG to run Junit tests
rohit
01-03-2020, 02:05 AM
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.
Powered by vBulletin® Version 4.2.4 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.