An importable file of test cases for Ghost themes. It's based on the concept (and the content!) of the WordPress Theme Unit Test.
This step in Theme testing correlates to a Ghost export (json
) file that you can import into a Ghost installation to test your theme. To be clear, this is only one of many ways you should/could test a theme.
Assuming you've already gotten Ghost set up locally and it is running your theme, here are the steps to setting up the unit test:
- Go to the Staff section, click on the Ghost user if you have one and click on the cog icon (top-right) and delete the Ghost user and posts
- Download this repo.
- Go to the labs section of your Ghost installation's settings (
http://example.com/ghost/settings/labs/
) - Click the red 'Delete' button to clear the database of all existing content, and confirm (this gives us a clean slate)
- Click 'Choose File' under Import
- In the resulting file picker, navigate to wherever you downloaded the repo and select the
json
file. - Click the blue
Import
button.
Each post or page is usually pretty self explanatory, or has instructions included. Have fun!
Released under the WTFPL.
Submit a pull request