-
-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only run tests for exercises that have changed #2693
Comments
@sanderploegsma, could you please assign it to me ? |
I've just assigned this one to you @josealonso |
Thanks, @kahgoh!! |
I created a Gradle task that detects the changes, but I creating a custom command doesn't work: tasks.register('compileChangedModules') {
dependsOn detectChangedModules
doLast {
if (changedModules.isEmpty()) {
println "No modules to compile."
} else {
changedModules.each { module ->
println "Compiling module: $module"
exec {
commandLine "./gradlew", ":$module:compileStarterTestJava"
}
}
}
}
}
|
This compiles, but calling this task raises an exception in run-time. Could you explain me where the command ./gradlew test is declared, @kahgoh ? |
@josealonso, There is also one in the exercises directory of the repo (I think this is one you want to use). |
I know |
To make the feedback cycle for contributions a lot shorter, it would be great if some of our GitHub Actions workflows would only check exercises that have been updated in the corresponding Pull Request.
Nothing is as annoying as updating a single file and having to wait for almost 10 minutes for the test runner to finish testing every exercise. Not to mention when one of those tests then fails even though you didn't even change anything there!
I'm open to ideas on how to achieve this. If you have a good idea please leave a comment on this issue!
The text was updated successfully, but these errors were encountered: