Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Automated tests for the theme #104

@paulpopus

Description

@paulpopus

We can write some tests using Mocha.js that will test that the theme runs as expected. First issue is to make sure it compiles but other suggestions are welcome.

EDIT:

Going to open a PR early so others can try the mocha tests.

Copying in @finnlewis @Adnan-cds @stephen-cox @cjstevens78

Branch
feature/automated-theme-tests

Usage
npm install the new packages then try running npm run health-check and hopefully all tests pass. These tests check specifically for the theme structure, checking if directories and files exist and that gulp commands return with no errors.

Left to do:

  • Test for Browsersync and gulp watchers
  • Test for generated files and making sure that they compile as expected
  • File cleanup after tests
  • Integrate with Github Workflows
  • Post installation tests, these are tests that check things like node env and any other things the dev might need to check after running npm install such as node_modules being gitignored.

Can continue working on this later but was keen to get first impressions and comments. There is a related PR in draft mode for this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions