An importable file of test cases for Ghost themes
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
ghost-theme-unit-test.json

README.md

The Ghost Theme Unit Test

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.

Getting Setup

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:

  1. Download this repo.
  2. Go to the labs section of your Ghost installation's settings (http://example.com/ghost/settings/labs/)
  3. Click the red 'Delete' button to clear the database of all existing content, and confirm (this gives us a clean slate)
  4. Click 'Choose File' under Import
  5. In the resulting file picker, navigate to wherever you downloaded the repo and select the json file.
  6. Click the blue Import button.

Testing

Each post or page is usually pretty self explanatory, or has instructions included. Have fun!

License

Released under the WTFPL.

Contributing

Submit a pull request, or complain loudly on Twitter @nickisnoble!