O'Reilly logo

TestNg Beginner's Guide by Varun Menon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Migrating from JUnit

In the previous chapter we learned how to configure and execute TestNG tests through code. We had learned about different ways to configure and run the TestNG tests at runtime. In this chapter we will cover how to run the existing JUnit tests through TestNG and how to migrate your existing JUnit tests to TestNG.

In this chapter we'll cover the following topics:

  • Running your JUnit Tests through TestNG
  • Running JUnit tests along with TestNG through Ant
  • Migrating from JUnit to TestNG

Running your JUnit tests through TestNG

Many of the old test frameworks use JUnit as the testing and execution framework but, with the advantages that TestNG provides over JUnit forces the teams to think about moving to TestNG. This can be ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required