You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,13 +116,21 @@ npm run build:theme # @userfrosting/theme-pink-cupcake
116
116
117
117
**PHP tests** (PHPUnit):
118
118
```bash
119
+
# Run all tests
120
+
vendor/bin/phpunit
121
+
119
122
# Run specific suite
120
123
vendor/bin/phpunit --testsuite="Core Sprinkle"
121
124
vendor/bin/phpunit --testsuite="Framework"
122
125
123
126
# Or use VS Code task "PHPUnit"
124
127
```
125
128
129
+
Running all tests can be time consuming. During development, run tests for specific files or suites as needed first, then run the full suite before committing.
130
+
```bash
131
+
vendor/bin/phpunit tests/src/SomeClassTest.php
132
+
```
133
+
126
134
**Frontend tests** (Vitest):
127
135
```bash
128
136
npm run test# Watch mode
@@ -131,7 +139,11 @@ npm run coverage # With coverage report
131
139
132
140
- Root [vitest.config.ts](vitest.config.ts) runs tests from all workspace packages
133
141
- Uses `happy-dom` environment
134
-
- Coverage: `_meta/_coverage/`
142
+
- Coverage:
143
+
- PHP : `_meta/coverage/`
144
+
- JS : `_meta/_coverage/`
145
+
146
+
All changes should be covered by tests. New features require new tests. 100% code coverage is the goal.
0 commit comments