Summary
We can't use parameters in unit tests because the build.gradle doesn't copy the deploy directory to the test executable's directory. In FRC-2022-CPP, I was working on adding this to the build script using a hack. However, I think we can deploy it to any desktop target rather elegantly.
In any case, the objective of this ticket is to allow parameters.toml to be loaded in CI and local unit tests.
Work Required
Modify build.gradle to copy TOML parameters to test directory
Summary We can't use parameters in unit tests because the build.gradle doesn't copy the deploy directory to the test executable's directory. In FRC-2022-CPP, I was working on adding this to the build script using a hack. However, I think we can deploy it to any desktop target rather elegantly.
In any case, the objective of this ticket is to allow parameters.toml to be loaded in CI and local unit tests.
Work Required
build.gradle
to copy TOML parameters to test directoryVerification