Skip to content

Juliet Java test suite is a collection of 112 different CWEs

License

Notifications You must be signed in to change notification settings

UnitTestBot/juliet-java-test-suite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Juliet Java Test Suite

CI JitPack License

A collection of test cases in the Java language. It contains examples organized under 112 different CWEs.

The Juliet Java 1.3 test suite is taken from the NIST website

Build

To build the Juliet Java Test Suite, simply execute the following command:

./gradlew build

Once built, you can locate the compiled JARs within juliet-*/build/libs/*.jar directories.

Gradle dependency

Each CWE is available as a separate artifact on JitPack:

repositories {
    maven(url = "https://jitpack.io/")
}

dependencies {
    // CWE476: NULL Pointer Dereference
    implementation("com.github.UnitTestBot.juliet-java-test-suite:cwe476:$version")

    // Include the `support` module, if needed:
    implementation("com.github.UnitTestBot.juliet-java-test-suite:support:$version")
}

You also have the option to include the entire repository as a dependency by adding com.github.UnitTestBot:juliet-java-test-suite:$version to your project. However, please be aware that the complete artifact, which includes all CWEs, is quite substantial in size, exceeding 60MB.