-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
The template already includes configuration for running unit tests on native code, but does not include configuration for any Java tests. I have added my own configuration as is documented here for robot projects:
dependencies {
...
testImplementation 'junit:junit:4.12'
}
...
test {
useJUnit()
}This works fine unless a test requires use of the HAL i.e. HAL.initialize(500, 0). This will throw an exception:
java.io.IOException: wpiHaljni could not be loaded from path or an embedded resource.
attempted to load for platform /windows/x86-64/
I have tried this on a fresh copy of the template on a couple different computers that are able to run these tests just fine in a robot project, so I believe there is some extra configuration that the GradleRIO plugin would normally take care of and not an issue with my system.
Metadata
Metadata
Assignees
Labels
No labels