mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-05 08:40:08 +00:00
Add start of test framework for plugins
Adds a basic testing framework suitable for plugins that start simple Actions for players, which can be expanded on in the future. The banking and training dummy tests have been updated to use this framework and serve as samples.
This commit is contained in:
@@ -24,6 +24,19 @@ task testPlugins {
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
pluginTesting {
|
||||
kotlin {
|
||||
srcDir 'src/pluginTesting/kotlin'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
pluginTestingCompile sourceSets.test.output
|
||||
pluginTestingCompile sourceSets.test.compileClasspath
|
||||
}
|
||||
|
||||
check.dependsOn testPlugins
|
||||
|
||||
class PluginBuildData {
|
||||
@@ -65,6 +78,8 @@ def configurePluginDependencies(SourceSet mainSources, SourceSet testSources,
|
||||
dependencies.add(testConfiguration, mainSources.output)
|
||||
dependencies.add(testConfiguration, configurations.testCompile)
|
||||
dependencies.add(testConfiguration, sourceSets.test.output)
|
||||
dependencies.add(testConfiguration, sourceSets.test.compileClasspath)
|
||||
dependencies.add(testConfiguration, sourceSets.pluginTesting.output)
|
||||
}
|
||||
|
||||
def configurePluginTasks(String name, SourceSet mainSources, SourceSet testSources,
|
||||
|
||||
Reference in New Issue
Block a user