JUnit test suite generator for Java code, used within ANT Group
Top 97.3% on SourcePulse
This project provides an automated tool for generating JUnit test suites for Java code, aiming for high branch and line coverage. It is designed for Java developers and teams seeking to improve test suite quality and reduce manual effort, with a proven track record in ANT Group supporting over 1000 projects.
How It Works
The generator is built upon EvoSuite, employing Search-Based Software Testing (SBST) as its core framework. It introduces optimized algorithms to address performance issues with large search spaces (e.g., extensive String usage) and improve efficiency. Additionally, it incorporates an optimal call sequence algorithm for more readable and logical test case structures, and specifically handles Spring Framework dependencies by generating mock statements for autowired fields to prevent NullPointerException
.
Quick Start & Requirements
mvn clean install -Dmaven.test.skip=true
cp ${user.home}/.m2/repository/org/smartut/smartut-master/1.1.0/smartut-master-1.1.0.jar smartut.jar
mvn clean compile
, mvn clean install -Dmaven.test.skip=true
, mvn dependency:copy-dependencies
java -jar ./smartut.jar -setup <project_classes_path> <dependency_jars_path>
java -jar ./smartut.jar -class <fully_qualified_class_name>
or java -jar ./smartut.jar -target <classes_folder_path>
Highlighted Details
Maintenance & Community
Contact email: smartunit_opensource@service.alipay.com
. A SaaS offering is available at https://smartunit.opentrs.com
for full lifecycle test case management.
Licensing & Compatibility
The README does not explicitly state the license. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The project is primarily focused on Java and its effectiveness may vary with highly complex or unconventional codebases. The README does not detail specific limitations or known issues.
1 year ago
1 week