File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,15 +72,29 @@ cd tests/integration
7272composer i
7373chown -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)
7680cd tests/integration
7781runuser -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
8087cd tests/integration
8188runuser -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
86100npm test # Jest tests
You can’t perform that action at this time.
0 commit comments