Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 881 Bytes

README.md

File metadata and controls

39 lines (32 loc) · 881 Bytes

assertjGen-gradle-plugin

Gradle plugin that generate AssertJ assertion class.

Example (v2.x.x)

build.gradle

buildscript {
    repositories {
        maven {
          url "https://plugins.gradle.org/m2/"
        }
    }
    dependencies {
        classpath "gradle.plugin.com.github.opengl-8080:assertjGen-gradle-plugin:2.0.0"
    }
}

apply plugin: "com.github.opengl-BOBO.assertjGen2"

repositories {
    mavenCentral()
}

dependencies {
    testCompile 'junit:junit:4.12'
    testCompile 'org.assertj:assertj-core:3.5.2'
}

assertjGen {
    packages = ['foo.bar']
    generateAssertionsForAllFields = true
    includes = [/foo\.bar\.Fizz.*/]
    generateJUnitSoftAssertions = false
    writeReportInFile = "${buildDir}/report.txt"
}

Please read wiki for more details.