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

Add automated tests #72

Open
3 tasks
TravisCarden opened this issue Jul 11, 2024 · 0 comments
Open
3 tasks

Add automated tests #72

TravisCarden opened this issue Jul 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@TravisCarden
Copy link
Contributor

TravisCarden commented Jul 11, 2024

It's time to start testing our standards. There are some precedents we can look to in https://github.com/squizlabs/PHP_CodeSniffer/tree/master/tests and https://github.com/slevomat/coding-standard/tree/master/tests. They take slightly different approaches; I think both will be informative. Alternatively, PHP itself has a very nice PHPT test file format that encapsulated very granular assertions all in one file (with the ability to use external fixtures still). (Example. Observe the --FILE-- and --EXPECTF-- sections, in particular.) I wouldn't mind adding either of these approaches to my toolkit.

  • Decide on an approach.
  • Make it easy to run locally with a test Composer custom script.
  • Configure it to run on CI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant