Commit a9a7c893 authored by René Schöne's avatar René Schöne
Browse files

Clean test resources before task test.

parent 7e9b8432
......@@ -280,7 +280,10 @@ task compileSerializerManualRelativeTest(type: RelastTest) {
moreInputFiles 'src/test/jastadd/Utils.jadd', 'src/test/jastadd/serializer-manual-relative/JsonPointer.jrag'
}
clean {
task cleanTestGen(type: Delete) {
group 'verification'
description 'Cleans all generated test resources'
delete 'src/test/jastadd/serializer-names/Serializer.ast'
delete 'src/test/jastadd/serializer-names/Serializer.jadd'
delete 'src/test/jastadd/serializer-names/SerializerSerializer.jadd'
......@@ -337,9 +340,13 @@ clean {
delete 'src/test/jastadd/multiple/Multiple.jadd'
delete 'src/test/jastadd/multiple/Multiple.ast'
delete fileTree('src/test/java-gen/') {
exclude '.gitignore'
}
}
test {
outputs.upToDateWhen { false }
useJUnitPlatform()
dependsOn cleanTestGen
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment