dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
858 stars 467 forks source link

Migrate TestNG unit tests to JUnit #9757

Closed dsilvam closed 8 years ago

dsilvam commented 8 years ago

There are a few (to be optimistic) unit tests that need to be migrated from TestNG to JUnit. There are known features of TestNG used in some of these tests that have no direct equivalent in JUnit, for example, DataProviders. We need to look if JUnit5 (will upgrade to it) supports it. We can check this out also: https://github.com/TNG/junit-dataprovider

Expected Behavior

All unit tests need to be in JUnit.

Current Behavior

Some unit tests are written in TestNG. Some are in JUnit.

Context

We are moving forward having a better way of running tests in dotcms. This is one of the steps to achieve so. This way you would be able to right click in your IDE and run the entire unit test package and get quick feedback, including coverage.

nollymar commented 8 years ago

PR: https://github.com/dotCMS/core/pull/9771