Frage

We currently use JUnit for testing, but this will be our team's first try at paralleling the tests.

Would there be a major advantage to moving using TestNG?

War es hilfreich?

Lösung

I don't think there is any specific advantage of using TestNG in preference of JUnit with regards to the parallelizing of tests. It's pretty straightforward to get tests to run in parallel using either library, and we have created a sample test for JUnit that demonstrates how to run the tests in parallel.

The Sauce TestNG samples also demonstrate how to configure the tests to run in parallel, which is done via the XML configuration file.

We have also created a ConcurrentParameterized test runner for JUnit, which will supports running parameterized tests in parallel.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top