mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[build] Publish unit tests for examples (#5838)
This commit is contained in:
@@ -22,6 +22,10 @@ task cppExamplesZip(type: Zip) {
|
||||
from('src/main/cpp/examples') {
|
||||
into 'examples'
|
||||
}
|
||||
|
||||
from('src/test/cpp/examples') {
|
||||
into 'examples_test'
|
||||
}
|
||||
}
|
||||
|
||||
task cppTemplatesZip(type: Zip) {
|
||||
@@ -35,6 +39,10 @@ task cppTemplatesZip(type: Zip) {
|
||||
from('src/main/cpp/templates') {
|
||||
into 'templates'
|
||||
}
|
||||
|
||||
from('src/test/cpp/templates') {
|
||||
into 'templates_test'
|
||||
}
|
||||
}
|
||||
|
||||
task cppCommandsZip(type: Zip) {
|
||||
@@ -48,6 +56,10 @@ task cppCommandsZip(type: Zip) {
|
||||
from('src/main/cpp/commands') {
|
||||
into 'commands'
|
||||
}
|
||||
|
||||
from('src/test/cpp/commands') {
|
||||
into 'commands_test'
|
||||
}
|
||||
}
|
||||
|
||||
build.dependsOn cppTemplatesZip
|
||||
|
||||
@@ -867,7 +867,8 @@
|
||||
],
|
||||
"foldername": "UnitTest",
|
||||
"gradlebase": "cpp",
|
||||
"commandversion": 2
|
||||
"commandversion": 2,
|
||||
"hasunittests": true
|
||||
},
|
||||
{
|
||||
"name": "SimpleDifferentialDriveSimulation",
|
||||
|
||||
@@ -22,6 +22,10 @@ task javaExamplesZip(type: Zip) {
|
||||
from('src/main/java/edu/wpi/first/wpilibj/examples') {
|
||||
into 'examples'
|
||||
}
|
||||
|
||||
from('src/test/java/edu/wpi/first/wpilibj/examples') {
|
||||
into 'examples_test'
|
||||
}
|
||||
}
|
||||
|
||||
task javaTemplatesZip(type: Zip) {
|
||||
@@ -35,6 +39,10 @@ task javaTemplatesZip(type: Zip) {
|
||||
from('src/main/java/edu/wpi/first/wpilibj/templates') {
|
||||
into 'templates'
|
||||
}
|
||||
|
||||
from('src/test/java/edu/wpi/first/wpilibj/templates') {
|
||||
into 'templates_test'
|
||||
}
|
||||
}
|
||||
|
||||
task javaCommandsZip(type: Zip) {
|
||||
@@ -48,6 +56,10 @@ task javaCommandsZip(type: Zip) {
|
||||
from('src/main/java/edu/wpi/first/wpilibj/commands') {
|
||||
into 'commands'
|
||||
}
|
||||
|
||||
from('src/test/java/edu/wpi/first/wpilibj/commands') {
|
||||
into 'commands_test'
|
||||
}
|
||||
}
|
||||
|
||||
build.dependsOn javaTemplatesZip
|
||||
|
||||
@@ -860,7 +860,8 @@
|
||||
"foldername": "unittest",
|
||||
"gradlebase": "java",
|
||||
"mainclass": "Main",
|
||||
"commandversion": 2
|
||||
"commandversion": 2,
|
||||
"hasunittests": true
|
||||
},
|
||||
{
|
||||
"name": "DifferentialDrivePoseEstimator",
|
||||
|
||||
Reference in New Issue
Block a user