Skip to content

opengl-8080/assertjGen-gradle-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Gradle plugin that generate AssertJ assertion class.

Resources

License

Stars

Watchers

Forks

Packages

No packages published