Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

MuJava

albany.edu

  • Free plan
  • Windows
  • macOS
  • Linux
7.9 Club score Visit albany.edu

What MuJava is

MuJava generates altered versions, or mutants, of Java programs for mutation testing. It supports traditional method-level operators as well as 24 class-level operators for object-oriented programs. You can test an individual class or a package containing multiple classes. MuJava runs the supplied tests against generated mutants and evaluates mutation coverage.

Tests must be JUnit test cases: public test classes and methods containing calls to the class under test. JUnit test suites are not supported. Equivalent mutants need to be identified by hand; the documentation says they typically make up 5% to 20% of mutants. Version 4 supports Java 1.6 language features, including generics, annotations, enumerations, varargs, enhanced for-each loops, and static imports. The documented setup uses two JAR files and a configuration file, with Java CLASSPATH and PATH configuration. Its documented workflow uses Java GUI applications, while the muScript command-line interface was released in March 2014. An Eclipse plugin was created in 2007. Released as open source under the Apache license in April 2015, MuJava is offered as-is, without a guarantee of answers to questions, fault fixes, or improvements. The maker describes students and researchers among its users.

Who it suits

MuJava suits students, researchers, and Java developers who want to evaluate JUnit test coverage through mutation testing. It is a better fit for workflows that can use its supported JUnit test cases and documented Java setup.

Good to know, and what to watch

  • Generates method-level and class-level mutants
  • Supports testing individual classes or multi-class packages
  • Evaluates mutation coverage by running tests against mutants
  • Free and open source under the Apache license
  • JUnit test suites are not supported
  • Equivalent mutants require manual identification
  • Setup requires Java CLASSPATH and PATH configuration
  • The project is provided as-is without guaranteed fixes or improvements

µJava

Free

Free plan

Getting started

  1. Open the MuJava project website
  2. Install the two documented JAR files
  3. Create or use the required configuration file
  4. Configure Java CLASSPATH and PATH
  5. Prepare public JUnit test classes and methods
  6. Use the Java GUI applications or muScript to generate mutants and run tests

Limits to check

MuJava requires JUnit test cases rather than JUnit test suites, and equivalent mutants must be reviewed by hand. The project is provided as-is, with no guarantee of question answering, fault fixing, or improvements.

The Club's review

MuJava is a Java mutation-testing tool for students, researchers, and developers evaluating JUnit tests. Its class-level operators give it a useful object-oriented focus, but its narrow test workflow and hands-off maintenance make it a poor fit for teams needing ongoing support.

Overview

MuJava generates method-level and class-level mutants for Java programs, then runs tests against them to evaluate mutation coverage. It can target a single class or a package of multiple classes, so it can help assess whether tests catch altered behavior across more than one unit at a time.

The 24 class-level operators distinguish its object-oriented testing approach. That focus is valuable for Java coursework and research, though the tool's required JUnit test-case format limits its fit for projects organized around JUnit suites.

Key features

Mutation generation and coverage

MuJava automates mutant generation and runs supplied tests against those variants, giving developers a measure of test coverage based on whether mutations are detected. Results still need human interpretation: equivalent mutants must be identified manually, and documentation estimates they commonly make up 5% to 20% of generated mutants.

JUnit and Java support

Tests must be JUnit test cases with public test classes and methods, containing method-call sequences for the classes under test. JUnit test suites are not supported. Version 4 supports Java 1.6 language features such as generics, annotations, enumerations, varargs, enhanced for-each loops, and static imports, a useful range for code using those constructs but not a claim of compatibility with newer language features.

Setup and workflow

The documented setup requires two JAR files, a configuration file, and Java CLASSPATH and PATH configuration. The workflow uses Java GUI applications; muScript provides a command-line interface. This gives users both graphical and command-line routes, but setup requires more manual configuration than a tool that installs directly into an existing test workflow.

Pricing

MuJava is free: the µJava plan costs nothing and is open source under the Apache license. There is no paid tier to unlock, but the project is provided as-is, and maintainers do not guarantee answers to questions, bug fixes, or improvements. That makes the price attractive for independent academic use, while support-sensitive teams should account for the lack of a maintenance commitment.

Platforms

MuJava supports Linux, macOS, and Windows. Java is its supported language, and JUnit is its test framework.

Who it's for

MuJava suits students and researchers who need to explore mutation testing in Java, especially where class-level operators are relevant and a JUnit test-case workflow is acceptable. Developers can use it to examine test coverage across individual classes or multi-class packages. It is less suitable for teams that depend on JUnit suites, want a contemporary Java compatibility guarantee, or need committed support and fixes.

Pros and cons

Pros

  • Object-oriented mutation coverage: 24 class-level operators complement method-level mutation, making the tool relevant to testing class behavior.
  • Free and open source: The Apache-licensed plan costs nothing, with no paid plan required.
  • Multiple target sizes: It can evaluate individual classes or packages containing multiple classes.
  • Cross-platform: Linux, macOS, and Windows are supported.

Cons

  • Manual equivalent-mutant review: Users must identify equivalent mutants themselves, and they typically account for 5% to 20% of mutants.
  • Constrained JUnit input: JUnit suites are unsupported; tests must be public JUnit test classes and methods.
  • Configuration overhead: Setup involves JARs, a configuration file, and Java environment-path changes.
  • No support guarantee: Maintainers offer the tool as-is and do not promise fixes, answers, or improvements.

Alternatives

Choose Mutation Testing Tools to compare options across the category. For another Java mutation-analysis framework on Linux, LittleDarwin is free and supported through donations. ArcMutate is worth considering when a freemium option with a free trial and Linux, macOS, Windows, or self-hosted availability better suits the project. For Python work, pymute is a free Linux option that requires Rust and Cargo; Mutatest is free on Linux, macOS, and Windows; and pytest-gremlins is a free Linux package requiring Python 3.11 or later. MutPy is another free Linux and self-hosted option. For a different freemium option, Mutant offers an open-source plan for public repositories and a commercial plan at $30 a month per developer. Stryker Dashboard is a free, open-source dashboard available through web and API platforms.

Verdict

MuJava is a strong fit for students and researchers seeking free Java mutation generation with class-level operators and willing to work within its JUnit test-case format. Its chief reason to choose it is the combination of object-oriented operators and mutation coverage without a license cost. Look elsewhere if manual equivalent-mutant sorting, environment configuration, unsupported JUnit suites, or as-is support terms would obstruct the work.

The verdict

MuJava provides Java mutation generation and coverage evaluation, with support for both method-level and object-oriented operators. Its JUnit test-case requirement, manual equivalent-mutant review, and as-is support terms are important constraints to weigh.

Questions people ask

Does MuJava cost anything?

MuJava has a free plan costing free and is open source under the Apache license.

Which operating systems does MuJava support?

It supports Linux, macOS, and Windows.

Which language and test framework does it use?

MuJava is for Java programs and uses JUnit test cases.

Can MuJava test packages as well as classes?

Yes. It can test individual Java classes and packages containing multiple classes.

Are JUnit test suites supported?

No. Tests must be JUnit test cases with public test classes and methods.

What happens with equivalent mutants?

They must be identified manually; the documentation says they typically make up 5% to 20% of mutants.

What the maker publishes

CLI
A command-line interface called muScript was released in March 2014. source
Command line
A command line interface called muScript was released in March 2014. source
Coverage
After generating mutants, µJava runs tests and evaluates their mutation coverage. source
Eclipse
The maker page says an Eclipse plugin version was created by Laurie Williams and Ben Smith of NC State in 2007. source
Equivalent mutants
Equivalent mutants must be identified by hand, and the documentation says 5% to 20% of mutants are typically equivalent. source
Founded
2003 source
Installation
The documented setup uses two JAR files and a configuration file, and requires configuring Java CLASSPATH and PATH. source
Intended users
The maker describes MuJava as a service to the community and says it has been used by students and researchers. source
Interface
The documented workflow uses Java GUI applications to generate and run mutants. source
Java compatibility
Version 4 supports JUnit tests and Java 1.6 language features, including generics, annotations, enumerations, varargs, enhanced for-each loops, and static imports. source
Language support
Version 4 supports Java 1.6 language features including generics, annotations, enumerations, varargs, enhanced for-each loops, and static imports. source
License
The project was released as open source under the Apache license in April 2015. source
Mutation operators
It creates object-oriented mutants using 24 class-level operators and also supports method-level operators. source
Platforms
The download instructions say MuJava can run on Unix, Linux, and Windows, and provide Mac setup instructions. source
Purpose
MuJava automatically generates mutants for Java programs for traditional method-level and class-level mutation testing. source
Support
The maintainers offer MuJava as-is and do not guarantee question answering, fault fixing, or improvements. source
Test evaluation
MuJava runs tests against generated mutants and evaluates mutation coverage. source
Test framework
Tests are provided as JUnit test classes containing methods that call the class under test; JUnit test suites are not supported. source
Test integration
Tests are written as JUnit test cases containing sequences of method calls to the classes under test. source
Test limitation
JUnit test suites are not supported; test sets must be JUnit test cases with public test classes and methods. source
Test scope
It can test individual Java classes and packages containing multiple classes. source

Checked against the maker's pages on 8 Oct 2026.