-
-
Notifications
You must be signed in to change notification settings - Fork 44
auto-test documented test programs #186
New issue
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
Comments
Josh to find test programs, Steven to JUnit-ify them. |
Example: https://github.com/unicode-org/unicodetools/blob/main/docs/idna.md Use judgment; some classes that should be unit tests may not be called |
Hi, just checking -- any progress? I think "Josh to find test programs" comes first...? |
Thanks for the reminder -- I have been sidetracked but hoping to make some progress on this and #187 this week |
@markusicu @srl295 I went through and added what appeared to be tests ("checks" in some cases). |
Thanks @josh-hadley ! Over to @srl295 ?
|
@markusicu sounds good to me. I can do it along with #146 (similar work, separate PRs) |
@srl295 do you have time to work on TestUnicodeInvariants & TestIdna ? |
Generally yes maybe not today |
I think #146 is done but need to verify |
friendly ping @srl295 on TestUnicodeInvariants & TestIdna :-) (see #186 (comment)) |
It would be great to get these done soon, helping get the Unicode 15 beta ready. |
@srl295 back in town? |
I'll take a look tomorrow. |
For a start, TestUnicodeInvariants does not have to become a parameterized test. The text above says "consider" :-) It would already be useful to just have it run as a test case and fail when either ParseErrorCount or TestFailureCount is not zero. |
I've scheduled it for my work tomorrow. |
right, and it will also run along with all others when JUnit tests run. |
- add a test for SRC_UCD_DIR not containing nulls - fix a misnamed "outputFile" that was really an input file #186
- read data from classpath on null. #186
- move TestCodeInvariants into the test/ subtree #186
- remove dead code and functions such as main() - an earlier iteration did not call the GCB tests properly from JUnit #186
- an earlier iteration still did not call the GCB tests properly from JUnit #186
* TestUnicodeInvariants: add tests for TestCodeInvariants and TestUnicodeInvariants - did not move code into the test subdir..yet * TestUnicodeInvariants: test improvements - add a test for SRC_UCD_DIR not containing nulls - fix a misnamed "outputFile" that was really an input file #186 * TestUnicodeInvariants: test improvements - read data from classpath on null. #186 * TestUnicodeInvariants: test improvements - move TestCodeInvariants into the test/ subtree * TestCodeInvariants: test improvements - remove dead code and functions such as main() - an earlier iteration did not call the GCB tests properly from JUnit #186 * TestCodeInvariants: add a @test annotation - an earlier iteration still did not call the GCB tests properly from JUnit #186
@markusicu should CheckXmlProperties be JUnit-ified or not? The description and discussion seem to conflict |
Not. After this discussion we decided to skip it, and removed the check box from the description. I will propose a small docs update before closing this issue. |
🎉 |
In a CI workflow, run unit tests for documented tests.
List of tests:
Tool, not test, moved to #187:
The text was updated successfully, but these errors were encountered: