Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternatives to JUnit [closed]

Tags:

java

junit

Are there any alternatives to JUnit? I have a head unit running a proprietary stripped down version of JRE 1.4.2, and JUnit is incompatible with this implementation.

like image 696
Bender the Greatest Avatar asked Jul 08 '11 17:07

Bender the Greatest


People also ask

What is alternative to JUnit?

We have compiled a list of solutions that reviewers voted as the best overall alternatives and competitors to JUnit, including JHipster, Spring Framework, Apache OFBiz, and Spark.

Why is TestNG better than JUnit?

TestNG is a Java-based framework that is an upgraded option for running tests. JUnit does not support to run parallel tests. TestNG can run parallel tests.

What is the difference between JUnit and NUnit?

JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks. On the other hand, NUnit is detailed as "An open-source unit testing framework". An evolving, open source framework designed for writing and running tests in Microsoft .

Is TestNG open source?

TestNG is open source automation testing framework inspired from JUnit and NUnit with some additional feature. TestNG provide so many good features compare to JUnit and NUnit as below - Annotations helps to execute and organised the test execution.


2 Answers

Try using an older version of JUnit. Start with the latest 3.x version, if that doesn't work, go backwards from there. I would be very surprised if JUnit 3.8.1 didn't work as JUnit 3.8.1 was released in 2002 and J2SE 5.0 didn't come out until 2004. All releases are available here:

http://sourceforge.net/projects/junit/files/junit

like image 60
dgrant Avatar answered Oct 16 '22 10:10

dgrant


Not sure if it'll work any better than JUnit, but there is TestNG

like image 29
Joel Avatar answered Oct 16 '22 11:10

Joel