Skip to content

Commit 878634d

Browse files
committed
Update testing guide
1 parent d77b521 commit 878634d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

TESTING.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
This document describes how to:
44
- create and run tests for your development work,
55
- ensure code meets coding standards, for best practices and security,
6-
- ensure code passes static analysis, to catch potential errors that tests might miss
76

87
If you're new to creating and running tests, this guide will walk you through how to do this.
98

@@ -17,7 +16,11 @@ If you haven't yet created a branch and made any code changes, refer to the [Dev
1716

1817
## Write (or modify) a test
1918

20-
@TODO
19+
If your work creates new functionality, write a test.
20+
21+
If your work fixes existing functionality, check if a test exists. Either update that test, or create a new test if one doesn't exist.
22+
23+
Tests are written in PHP using [PHPUnit](https://phpunit.de/), and the existing `tests/ConvertKitAPITest.php` is a good place to start as a guide.
2124

2225
## Run PHPUnit
2326

0 commit comments

Comments
 (0)