Skip to content
Snippets Groups Projects
Commit 429ec956 authored by Teemu Heinämäki's avatar Teemu Heinämäki
Browse files

Lisätty Testing setup

parent a7824332
No related branches found
No related tags found
No related merge requests found
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.3'
}
}
repositories {
mavenCentral()
}
apply plugin: 'application'
apply plugin: 'org.junit.platform.gradle.plugin'
dependencies {
testCompile("org.junit.jupiter:junit-jupiter-api:5.0.3")
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.0.3")
}
compileJava.options.encoding = 'UTF-8'
mainClassName = "sample.Main"
\ No newline at end of file
#Sun Feb 11 09:30:40 EET 2018
#Sun Feb 11 11:13:54 EET 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-all.zip
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="kayttoliittymat2018" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="kayttoliittymat2018" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/build" />
<excludeFolder url="file://$MODULE_DIR$/out" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
package sample;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
public class SampleTests {
@Test
@DisplayName("Test for tests")
void simpleTest() {
Assertions.assertTrue(true);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment