Skip to content

Commit de228ad

Browse files
committed
docs: update copilot instructions
Signed-off-by: Vitor Mattos <[email protected]>
1 parent bb3eb06 commit de228ad

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/copilot-instructions.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,29 @@ cd tests/integration
7272
composer i
7373
chown -R www-data: .
7474

75+
# List available test steps
76+
cd tests/integration
77+
runuser -u www-data -- vendor/bin/behat -dl
78+
7579
# Running integration tests (from libresign root directory)
7680
cd tests/integration
7781
runuser -u www-data -- vendor/bin/behat features/<path>.feature
7882

83+
# Run with verbose output (shows nextcloud.log entries)
84+
runuser -u www-data -- vendor/bin/behat features/<path>.feature -v
85+
7986
# Example: Run specific feature file
8087
cd tests/integration
8188
runuser -u www-data -- vendor/bin/behat features/auth/login.feature
8289
```
8390

91+
**CRITICAL**: Like unit tests, ALWAYS run specific scenarios, NEVER run the entire integration test suite:
92+
- Always specify which feature file to run and the row of scenario if needed
93+
- Use `-dl` to list available test steps when writing new tests
94+
- Use `-v` flag to see nextcloud.log output during test execution
95+
- **Important**: steps with OCC command outputs (even with `-v`) don't appear in Behat output but are logged to `nextcloud.log`
96+
- Running all integration tests is extremely slow and resource-intensive
97+
8498
**Frontend Testing**:
8599
```bash
86100
npm test # Jest tests

0 commit comments

Comments
 (0)