Commit e7bf5b6
committed
CI/QA: prepare for adding additional tests
Update the test setup to allow for tests to be added for the Feature Complete tooling as well as the upcoming Docs XSD file.
**PHPUnit config**
* Rename the test suite to allow for adding additional test suites.
* Add a second test suite for the upcoming Docs XSD tests and future "Feature Complete" tooling tests, both of which will be non-PHPCS dependent tests.
**Composer**
* Tweak the supported PHPUnit version to ensure the namespaced `TestCase` class is always available.
* Add the PHPUnit Polyfills for use by those tests which need to use expectations/assertions which have changed over time.
* Add autoloading for test files.
* Add separate scripts to run the different test suites.
* Rename the `run-tests` script (to run all tests) to `test` to be in line with the names of similar scripts in other repos in this organisation.
**PHPUnit bootstrap**
* Load the autoloader for the PHPUnit Polyfills.
**GH Actions workflow**
* Adjust the existing test run to run only the sniff test testsuite.
* Add a second test run to run the tooling test suite which is only run once per PHP version.
**.gitattributes**
* Ignore the `Tests` directory for distribution archives.
**PHPCS config**
* Ignore long lines in test files as the "commands" to be passed can sometimes be quite long.1 parent bfda1bd commit e7bf5b6
File tree
7 files changed
+38
-8
lines changed- .github/workflows
7 files changed
+38
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
59 | | - | |
| 65 | + | |
60 | 66 | | |
61 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
62 | 74 | | |
63 | 75 | | |
64 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
0 commit comments