Last active
November 29, 2016 12:09
-
-
Save dpolivaev/6b53531ec9d5a6392d8a9ba33efecc38 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Files with typical JGiven dependencies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *.class | |
| hs_err_pid* | |
| /bin/ | |
| /.classpath | |
| /.project | |
| /.gradle/ | |
| /gradle/ | |
| /jgiven-reports/ | |
| /.settings/ | |
| /.idea/ | |
| /gradlew | |
| /gradlew.bat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apply plugin: 'java' | |
| apply plugin: 'idea' | |
| apply plugin: 'eclipse' | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| testCompile 'junit:junit:4.12' | |
| testCompile 'com.tngtech.jgiven:jgiven-junit:0.12.1' | |
| testCompile 'org.slf4j:slf4j-simple:1.7.21' | |
| testCompile 'org.assertj:assertj-core:3.5.2' | |
| testCompile 'com.tngtech.java:junit-dataprovider:1.11.0' | |
| } | |
| task wrapper(type: Wrapper) { | |
| gradleVersion = '3.0' | |
| } | |
| task jgivenReport(type: JavaExec) { | |
| main = 'com.tngtech.jgiven.report.ReportGenerator' | |
| args '--targetDir=build/jgiven-reports/html', | |
| '--format=html' | |
| classpath = configurations.testCompile | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>...</groupId> | |
| <artifactId>...</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <dependencies> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <version>4.12</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.tngtech.jgiven</groupId> | |
| <artifactId>jgiven-junit</artifactId> | |
| <version>0.12.1</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-simple</artifactId> | |
| <version>1.7.21</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.assertj</groupId> | |
| <artifactId>assertj-core</artifactId> | |
| <version>3.5.2</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.tngtech.java</groupId> | |
| <artifactId>junit-dataprovider</artifactId> | |
| <version>1.11.0</version> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>com.tngtech.jgiven</groupId> | |
| <artifactId>jgiven-maven-plugin</artifactId> | |
| <version>0.12.1</version> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>report</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| <configuration> | |
| <format>html</format> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment