Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 834 Bytes

automated-testing.md

File metadata and controls

45 lines (30 loc) · 834 Bytes

Automated testing

This repository uses Codeception for automated testing and is configured to use tric to run them.

Getting tric

Clone tric somewhere on your machine and ensure it is in your path.

cd ~/git/
git clone git@github.com:the-events-calendar/tric.git

Tell tric where to look for "plugins" to test

cd ~/git

tric here

Tell tric to use schema as the plugin to test

tric use schema

Run the tests

tric run wpunit

Or go into tric shell (this is faster) and run the tests:

tric shell

# Your prompt will look like this: ".../plugins/schema > "
# Run the following command to run the wpunit tests:
cr wpunit

# To leave tric shell:
exit