0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/test/utils/fixtures/themes
Hannah Wolfe a5655c4a22
Removed unnecessary files from casper fixture
refs: https://github.com/TryGhost/Toolbox/issues/193

- The Casper fixture in the codebase is copied to a tmp folder structure every single time we start Ghost in an e2e test
- We shouldn't keep files here that don't actually get used!
- The files I'm removing are src files, used for building, but we already have the built files
2022-01-25 14:07:59 +00:00
..
broken-theme
casper Removed unnecessary files from casper fixture 2022-01-25 14:07:59 +00:00
locale-theme Upgraded remaining theme fixtures to canary API 2022-01-24 21:55:13 +00:00
members-test-theme Upgraded remaining theme fixtures to canary API 2022-01-24 21:55:13 +00:00
test-theme Upgraded remaining theme fixtures to canary API 2022-01-24 21:55:13 +00:00
test-theme-channels
casper.zip
invalid.zip
README.md Bumped gscan to 4.0.0-pre.5 2021-03-04 21:18:27 +13:00
valid.zip Updated valid.zip to the latest casper version 2021-11-24 20:22:20 +01:00
warnings.zip

Modifying theme fixtures

When a new rule is introduced in gscan one of these fixture files might break and you'll have to update a "zip" which isn't as easy as opening a text editor... It could become that one day but for now here are some commands to help out with the edit process

  • Unzip the theme files, e.g.: cd $CURRENT_DIR && unzip valid.zip -d valid
  • Make a change in the file which caused a warning/error/whatever
  • Zip the files back: zip -r valid.zip ./valid
  • Commit changed zip file: git add valid.zip ;... you know the drill :)

Ideas for future improvements in theme tests:

  • Decouple tests from file system as much as possible
  • Track contents of what is in "zips" in source control. Right now, having a diff on a binary file is not useful at all