-
Notifications
You must be signed in to change notification settings - Fork 213
Data-driven testing #51
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
Labels
A-design
Area: Architecture or design
C-test-infra
Component: Integration test infrastructure
S-epic
Size: Major project (create smaller child issues)
T-core
Type: Required functionality
Milestone
Comments
Since we play a lot with JSON (test data etc) - this may be helpful - JSON Schema. JSON Schema
|
I'm merging #223 and #410 into this issue. Some notes from those issues:
|
Closed
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-design
Area: Architecture or design
C-test-infra
Component: Integration test infrastructure
S-epic
Size: Major project (create smaller child issues)
T-core
Type: Required functionality
One part of the larger testing strategy for ICU4X would be to have a clean, consistent way of organizing the unit tests for the business logic (i18n algorithms). In particular, it would be nice to have a data-oriented style of testing, as exemplified already in some parts of @zbraniecki's unic-locale repo. ICU unit tests tend to be written in a parameterized style, but the idea here is to take the data-driven nature further.
Pros and Cons
Pros:
Cons:
Existing libraries
Most searches for "data driven testing" produce results for databases, spreadsheets, and automated web UI testing. Links to more relevant pre-existing libraries are welcome.
Some examples of test libraries written to reduce the cognitive load when testing, especially when testing data collections:
Testing features
Beyond just asserting that the actual return value matches the provided expected value, we should also consider the following testing aspects:
The text was updated successfully, but these errors were encountered: