-
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #954 from wordhou/migrate-samples-to-kotlin-dsl
Migrate samples to kotlin dsl
- Loading branch information
Showing
13 changed files
with
191 additions
and
204 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Example project to show how to use Atrium in combination with mocha | ||
// For more information on how to setup Atrium for a JS project -> https://github.com/robstoll/atrium#js | ||
|
||
// for infix-api -> change to 'atrium-infix-en_GB-js' | ||
val atriumApi = "atrium-fluent-en_GB-js" | ||
val atriumVersion = "0.16.0" | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
"implementation"("org.jetbrains.kotlin:kotlin-stdlib-js") | ||
|
||
// setup for Atrium: | ||
"testImplementation"("ch.tutteli.atrium:$atriumApi:$atriumVersion") | ||
|
||
// setup for mocha: | ||
"testImplementation"("org.jetbrains.kotlin:kotlin-test-js") | ||
} | ||
|
||
plugins { | ||
kotlin("js") version "1.5.20" | ||
} | ||
|
||
group = "org.atriumlib.samples" | ||
version = "0.0.1" | ||
|
||
kotlin { | ||
js { | ||
nodejs() | ||
} | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Example project to show how to use Atrium in combination with JUnit5 | ||
// For more information on how to setup Atrium for a JVM project -> https://github.com/robstoll/atrium#jvm | ||
|
||
import org.gradle.api.tasks.testing.logging.TestExceptionFormat | ||
|
||
val atriumVersion = "0.16.0" | ||
val junitVersion = "5.7.2" | ||
|
||
plugins { | ||
kotlin("jvm") version "1.5.20" | ||
} | ||
|
||
group = "org.atriumlib.samples" | ||
version = "0.0.1" | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
// junit5 requires jdk8, define dependency to stdlib-jdk at least in test | ||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") | ||
|
||
// setup for Atrium: | ||
// for infix-api -> change artifact-id to 'atrium-infix-en_GB' | ||
testImplementation("ch.tutteli.atrium:atrium-fluent-en_GB:$atriumVersion") | ||
|
||
// setup for junit5 | ||
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion") | ||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion") | ||
} | ||
|
||
tasks.test { | ||
useJUnitPlatform { | ||
includeEngines("junit-jupiter") | ||
} | ||
testLogging { | ||
exceptionFormat = TestExceptionFormat.FULL | ||
showExceptions = true | ||
showCauses = true | ||
showStackTraces = true | ||
} | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Example project to show how to use Atrium in combination with Spek | ||
// For more information on how to setup Atrium for a JVM project -> https://github.com/robstoll/atrium#jvm | ||
|
||
import org.gradle.api.tasks.testing.logging.TestExceptionFormat | ||
|
||
val atriumVersion = "0.16.0" | ||
val spekVersion = "2.0.15" | ||
|
||
plugins { | ||
kotlin("jvm") version "1.5.20" | ||
} | ||
|
||
group = "org.atriumlib.samples" | ||
version = "0.0.1" | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
//spek requires jdk8, define dependency to stdlib-jdk at least in test | ||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") | ||
|
||
// setup for Atrium: | ||
// for infix-api -> change artifact-id to 'atrium-infix-en_GB' | ||
testImplementation("ch.tutteli.atrium:atrium-fluent-en_GB:$atriumVersion") | ||
|
||
// setup for 'spek', for some kotlin-version | ||
testImplementation("org.spekframework.spek2:spek-dsl-jvm:$spekVersion") | ||
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spekVersion") | ||
} | ||
|
||
tasks.test { | ||
useJUnitPlatform { | ||
includeEngines("spek2") | ||
} | ||
testLogging { | ||
exceptionFormat = TestExceptionFormat.FULL | ||
showExceptions = true | ||
showCauses = true | ||
showStackTraces = true | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rootProject.name = "atrium-spek" | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.