Skip to content
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

Develop a plan for expand test coverage #1

Open
ion-oset opened this issue Aug 8, 2022 · 0 comments
Open

Develop a plan for expand test coverage #1

ion-oset opened this issue Aug 8, 2022 · 0 comments

Comments

@ion-oset
Copy link
Owner

ion-oset commented Aug 8, 2022

Test coverage for data models is hampered by the fact that all properties declared at class level are always run. Coverage is shown at 100% but none of those properties have actually been tested. Devising full testing for all models by hand is a large amount of work that has to be done manually, with very little immediate benefit.

Possible solutions to consider:

  • Generate the test code using a generator in the same way models are generated. This is also a fair amount of work but could pay off in the long run.
  • Focus on developing the test data to cover real cases.
    • Include deliberately broken or pathological models.
  • Generate the test data with randomized inputs via fuzz-testing or (ideally) property based testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant