From e9b6f69f8c9f8c33026ca03603cac33d86d7a50f Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Wed, 11 Apr 2018 20:33:34 -0700 Subject: [PATCH] update CONTRIBUTING.md [skip ci] --- CONTRIBUTING.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9ce0a7c..e40f0b4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -77,4 +77,14 @@ In separate terminals: If you want to export the current data in the Mastodon instance as canned data, so that it can be loaded later, run: - npm run backup-mastodon-data \ No newline at end of file + npm run backup-mastodon-data + +## Writing tests + +Tests use [TestCafé](https://devexpress.github.io/testcafe/). The tests have a naming convention: + +* `0xx-test-name.js`: tests that don't modify the Mastodon database (post, delete, follow, etc.) +* `1xx-test-name.js`: tests that do modify the Mastodon database + +In principle the `0-` tests don't have to worry about +clobbering each other, whereas the `1-` ones do. \ No newline at end of file