GradleRIO
GradleRIO copied to clipboard
Add shorter task alias for C++ test execution
The following in build.gradle works, but it would be nice if GradleRIO provided it like simulateJava
.
task simulateCpp {
dependsOn 'simulateFrcUserProgram' + wpi.platforms.desktop.capitalize() + 'DebugExecutable'
}
The same could be said for test aliases like this:
task test {
dependsOn 'testRelease'
}
task testDebug {
dependsOn 'runFrcUserProgramTest' + wpi.platforms.desktop.capitalize() + 'DebugGoogleTestExe'
}
task testRelease {
dependsOn 'runFrcUserProgramTest' + wpi.platforms.desktop.capitalize() + 'ReleaseGoogleTestExe'
}
This was resolved by the adition of simulateNative, right?
Only the simulation part. testNativeDebug and testNativeDebug build the tests, but don't run them. There's still no equivalent of the test, testDebug, and testRelease tasks above.
I renamed this to more fit what the issue is now.