We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verifying the contents of epoch prints would have caught #2392.
Here's an example of verifying stdout contents with Google Test: https://github.com/wpilibsuite/allwpilib/blob/master/wpiutil/src/test/native/cpp/UnitsTest.cpp#L1307-L1310
Here's an example of verifying stdout contents with JUnit: https://stackoverflow.com/a/1119559/5484466
The text was updated successfully, but these errors were encountered:
I can do Java, how do I get output from DS.reportWarning()?
Sorry, something went wrong.
In unit tests, ReportWarning() just prints to stderr, so you just need to capture console output.
In Java, there is an overload that takes a lambda - can be used for testing. Dunno if C++ has this option as well.
Would it be good enough to make sure that the output conforms to a certain regex, or is something more thorough required?
For Java, you might take a look to see if SystemRules was updated for JUnit 5: stefanbirkner/system-rules#55
No branches or pull requests
Verifying the contents of epoch prints would have caught #2392.
Here's an example of verifying stdout contents with Google Test: https://github.com/wpilibsuite/allwpilib/blob/master/wpiutil/src/test/native/cpp/UnitsTest.cpp#L1307-L1310
Here's an example of verifying stdout contents with JUnit: https://stackoverflow.com/a/1119559/5484466
The text was updated successfully, but these errors were encountered: