Skip to content

Use QuickCheck for test#13

Merged
mbrubeck merged 2 commits into
servo:masterfrom
CYBAI:quickcheck
Oct 12, 2020
Merged

Use QuickCheck for test#13
mbrubeck merged 2 commits into
servo:masterfrom
CYBAI:quickcheck

Conversation

@CYBAI

@CYBAI CYBAI commented Oct 1, 2020

Copy link
Copy Markdown
Member

Current test cases are great enough though, I wonder if it's good to introduce quickcheck to have more randomness in the test cases.

Also, I added tests for front, find and touch in this PR.

(btw, I just noticed there's no CI for this repo 👀 maybe it's good to use GitHub Actions or Travis CI?)

@jdm

jdm commented Oct 1, 2020

Copy link
Copy Markdown
Member

Yes, adding CI to this repo would be nice.

@mbrubeck

mbrubeck commented Oct 8, 2020

Copy link
Copy Markdown
Collaborator

Thanks, this is very useful!

I'm not sure that every test needs to be a quickcheck test, though. For example, the new evict_all test doesn't really add any new coverage compared to the old one, since it only randomizes the stored values, which has no effect on the uluru code being tested.

For simplicity, could you keep the existing non-quickcheck tests, and use quickcheck only in new tests that benefit from the randomization?

@CYBAI

CYBAI commented Oct 9, 2020

Copy link
Copy Markdown
Member Author

Thanks, this is very useful!

I'm not sure that every test needs to be a quickcheck test, though. For example, the new evict_all test doesn't really add any new coverage compared to the old one, since it only randomizes the stored values, which has no effect on the uluru code being tested.

For simplicity, could you keep the existing non-quickcheck tests, and use quickcheck only in new tests that benefit from the randomization?

Indeed, that makes sense to me. I will update the PR to only use quickcheck for new tests! Thanks!

@mbrubeck mbrubeck merged commit d41097b into servo:master Oct 12, 2020
@CYBAI CYBAI deleted the quickcheck branch October 13, 2020 02:41
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

Successfully merging this pull request may close these issues.

3 participants