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

Interop test suites #3

Open
romainmenke opened this issue Jul 3, 2023 · 0 comments
Open

Interop test suites #3

romainmenke opened this issue Jul 3, 2023 · 0 comments

Comments

@romainmenke
Copy link
Member

When writing the tokenizer for csstools I was surprised that there weren't any test suites I could adopt to verify my work.

To help others I created https://github.com/romainmenke/css-tokenizer-tests

I never advertised this, but it still seemed to work as this test suite was adopted by https://github.com/keithamus/csslex


Having high quality, reusable test suites for common patterns and operations will make it easier to replace tools with a better version.

My inspiration for this is WPT.

I think there are two main benefits :

  • authors of tools can win a lot of time by not having to write all the tests and do all the investigations for high quality test corpora.
  • users of tools can compare two similar tools and check how they both score against the same test suite.

Authors of tools can still choose to deviate and fail specific test cases.
It might make sense in their context to optimize specific things and fail others.

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