I've developed a client-server-architecture using Kryonet and Gradle with roughly the following structure
- Parent project X, containing projects A and B
- Project A (server)
- Project B (client), containing integration and unit test classes
Now whenever I'm running the goal 'integrationTest' on project B (or project X, if that was easier), I'd like the server to get started in advance so that the integration tests won't fail.
This is what I've got so far in the build.gradle of project B - it doesn't run the server, though:
task integrationTest(type: Test) {
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
}
Aucun commentaire:
Enregistrer un commentaire