mirror of
https://github.com/irmen/prog8.git
synced 2024-06-01 22:41:38 +00:00
remove unittest machinery from modules that don't have tests
This commit is contained in:
parent
984272beb4
commit
1fbbed7e23
|
@ -16,12 +16,6 @@ dependencies {
|
||||||
implementation project(':compilerAst')
|
implementation project(':compilerAst')
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||||
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
||||||
|
|
||||||
testImplementation "org.jetbrains.kotlin:kotlin-test-junit5"
|
|
||||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
|
|
||||||
testImplementation 'org.hamcrest:hamcrest:2.2'
|
|
||||||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
@ -33,22 +27,6 @@ sourceSets {
|
||||||
srcDirs = ["${project.projectDir}/res"]
|
srcDirs = ["${project.projectDir}/res"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
test {
|
|
||||||
java {
|
|
||||||
srcDirs = ["${project.projectDir}/test"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
test {
|
// note: there are no unit tests in this module!
|
||||||
// Enable JUnit 5 (Gradle 4.6+).
|
|
||||||
useJUnitPlatform()
|
|
||||||
|
|
||||||
// Always run tests, even when nothing changed.
|
|
||||||
dependsOn 'cleanTest'
|
|
||||||
|
|
||||||
// Show test results.
|
|
||||||
testLogging {
|
|
||||||
events "skipped", "failed"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -12,7 +12,5 @@
|
||||||
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
|
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
|
||||||
<orderEntry type="module" module-name="compilerInterfaces" />
|
<orderEntry type="module" module-name="compilerInterfaces" />
|
||||||
<orderEntry type="module" module-name="compilerAst" />
|
<orderEntry type="module" module-name="compilerAst" />
|
||||||
<orderEntry type="library" scope="TEST" name="hamcrest" level="project" />
|
|
||||||
<orderEntry type="library" name="junit.jupiter" level="project" />
|
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
|
@ -1,2 +1,2 @@
|
||||||
Unittests for things in this module are located in the Compiler module instead,
|
Unittests for things in this module are located in the Compiler module instead,
|
||||||
for convenience sake - and to not spread the test cases around too much.
|
for convenience sake, and to not spread the test cases around too much.
|
|
@ -15,12 +15,6 @@ dependencies {
|
||||||
implementation project(':compilerAst')
|
implementation project(':compilerAst')
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||||
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
||||||
|
|
||||||
testImplementation "org.jetbrains.kotlin:kotlin-test-junit5"
|
|
||||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
|
|
||||||
testImplementation 'org.hamcrest:hamcrest:2.2'
|
|
||||||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
@ -32,23 +26,6 @@ sourceSets {
|
||||||
srcDirs = ["${project.projectDir}/res"]
|
srcDirs = ["${project.projectDir}/res"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
test {
|
|
||||||
java {
|
|
||||||
srcDirs = ["${project.projectDir}/test"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// note: there are no unit tests in this module!
|
||||||
test {
|
|
||||||
// Enable JUnit 5 (Gradle 4.6+).
|
|
||||||
useJUnitPlatform()
|
|
||||||
|
|
||||||
// Always run tests, even when nothing changed.
|
|
||||||
dependsOn 'cleanTest'
|
|
||||||
|
|
||||||
// Show test results.
|
|
||||||
testLogging {
|
|
||||||
events "skipped", "failed"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -11,7 +11,5 @@
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
|
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
|
||||||
<orderEntry type="module" module-name="compilerAst" />
|
<orderEntry type="module" module-name="compilerAst" />
|
||||||
<orderEntry type="library" scope="TEST" name="hamcrest" level="project" />
|
|
||||||
<orderEntry type="library" name="junit.jupiter" level="project" />
|
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
|
@ -1,2 +1,2 @@
|
||||||
Unittests for things in this module are located in the Compiler module instead,
|
Unittests for things in this module are located in the Compiler module instead,
|
||||||
for convenience sake - and to not spread the test cases around too much.
|
for convenience sake, and to not spread the test cases around too much.
|
|
@ -5,6 +5,7 @@ For next compiler release (7.3)
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
- replace all old asserts in compilerAst tests by kotest equivalents
|
- replace all old asserts in compilerAst tests by kotest equivalents
|
||||||
- remove kotlin.test and junit dependencies in compilerAst module
|
- remove kotlin.test and junit dependencies in compilerAst module
|
||||||
|
- migrate Compiler tests to KoTest library (this will close github issue #70)
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,7 +18,6 @@ Blocked by Commander-x16 v39 release
|
||||||
Future
|
Future
|
||||||
^^^^^^
|
^^^^^^
|
||||||
- fix the asm-labels problem (github issue #62)
|
- fix the asm-labels problem (github issue #62)
|
||||||
- start migrating to KoTest library (github issue #70)
|
|
||||||
- find a way to optimize asm-subroutine param passing where it now sometimes uses the evalstack?
|
- find a way to optimize asm-subroutine param passing where it now sometimes uses the evalstack?
|
||||||
- [complicated?] find a way to optimize if-statement codegen so that "if var & %10000" doesn't use evalstack & subroutine call, but also that the simple case "if X {...}" remains fast
|
- [complicated?] find a way to optimize if-statement codegen so that "if var & %10000" doesn't use evalstack & subroutine call, but also that the simple case "if X {...}" remains fast
|
||||||
- document the various compiler command line options in more detail. See "Compiling program code" in the docs
|
- document the various compiler command line options in more detail. See "Compiling program code" in the docs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user