GradleRIO icon indicating copy to clipboard operation
GradleRIO copied to clipboard

Add shorter task alias for C++ test execution

Open calcmogul opened this issue 3 years ago • 6 comments

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'
}

calcmogul avatar Jan 05 '21 04:01 calcmogul

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'
}

calcmogul avatar Jan 05 '21 04:01 calcmogul

This was resolved by the adition of simulateNative, right?

sciencewhiz avatar Jan 02 '22 03:01 sciencewhiz

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.

calcmogul avatar Jan 02 '22 08:01 calcmogul

I renamed this to more fit what the issue is now.

ThadHouse avatar Jan 28 '22 01:01 ThadHouse