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 tests to harden site functionality #32

Open
colbyfayock opened this issue Oct 12, 2020 · 2 comments
Open

Add tests to harden site functionality #32

colbyfayock opened this issue Oct 12, 2020 · 2 comments
Labels
enhancement New feature or request Hacktoberfest help wanted Extra attention is needed

Comments

@colbyfayock
Copy link
Owner

We should set up tests for the different functions that the site depend on

This includes things located in the various lib files

Jest?

@colbyfayock colbyfayock added enhancement New feature or request help wanted Extra attention is needed Hacktoberfest labels Oct 12, 2020
@colbyfayock
Copy link
Owner Author

would love to see some cypress tests too covering basic functionality, ideally things that someone wouldn't need to remove when cloning the site to avoid someone having to clean out a bunch of tests before getting started

we could theoretically make a query to WordPress and test page / post creation this way

  • Get the posts
  • check hte homepage shows the first several posts based on posts per page
  • etc

@colbyfayock
Copy link
Owner Author

the tests should generally be unopinionated, meaning, they shouldn't necessarilly test implementation details, otherwise the tests will start to fail as someone starts using the project by pulling in their own content and updating their name which shouldnt be the case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant