Skip to content

Add plugin tests#26

Draft
sinyo-matu wants to merge 13 commits intomainfrom
plugin-tests
Draft

Add plugin tests#26
sinyo-matu wants to merge 13 commits intomainfrom
plugin-tests

Conversation

@sinyo-matu
Copy link
Collaborator

related issue: #25

Based on the Fresh Project, I wrote some code for plugin testing.

In the tests/ directory, the fixture/ directory is a stub Fresh site as a test target.
In the file plugin.test.ts
https://github.com/xstevenyung/fresh-seo/blob/14b9c057535a47fa41a64e8f8e52c7fe3d2312fe/tests/plugin.test.ts#L9
the WithFresh function will start the Fresh web server of the fixture/ for our test process.

Todo:

  • test for sitemap generation.
  • test for include functionality
  • test for exclude functionality

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.

2 participants

Comments