-
-
Notifications
You must be signed in to change notification settings - Fork 137
feat(developer): emit ldml test case as markdown 🙀 #10815
Copy link
Copy link
Open
Labels
Milestone
Description
Given LDML test format:
<test name="key-8">
<startContext to="ABC" />
<keystroke key="8" />
<check result="8:ctxt:OK" />
</test>
<test name="key-8-fail">
<startContext to="" /> <!-- w/o context -->
<keystroke key="8" />
<check result="8:ctxt:FAIL"/>
</test>
<test name="key-8-osage">
<startContext to="𐓏" />
<keystroke key="8" />
<check result="8:ctxt:OK" />
</test>... we could have a tool convert this into markdown so users can run the test manually, something like:
Test: key-8
press 8
Check that the result is 8:ctxt:OKTest: key-8-osage
- copy this string:
𐓏- press 8
- Check that the result is 8:ctxt:ok
This could be used to (for example) maintain a TESTING.md automatically in the https://github.com/keyman-keyboards/ldml_test repo, generated from the unit test xml.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status