stable
Clone or download
request #14757 Cypress test architecture does not respect the plugin split pattern
This patch introduce a new architecture for or end to end tests: Tests in plugins should be organized like this: |_ plugins |_ plugin_name |_ tests |_ e2e |_ cypress |_ fixture => xml for import projects |_ integration => folder where all the spec.js are defined |_ cypress.json => needed for `cypress run` command, I tried to define custom path for cypress.json with their cli but I didn't found a proper way to do it. + It enables us to declutter test results Nothing changes for core tests they still will be under: |_ tests |_ e2e |_ _fixtures |_ full |_ cypress |_ integration |_ support => command here can be imported anywhere to mutualise connection and global logic |_ cypress.json How to test: make tests_cypress the check results in test_results_full => results are préfixed by core-* timetracking-* => screenshot and videos are also prefixed by core-* or timetracking-* make tests_cypress_dev go under plugins/timetracking/tests/e2e/cypress/ npx cypress open => you should be able to run and execute cypress tests locally Change-Id: I44b7c59ea6ef60aacfcb34d76c2d22951556e014
Modified Files
Name | ||||
---|---|---|---|---|
M | .eslintrc.js | +1 | −1 | Go to diff View file |
R | tests/e2e/_fixtures/timetracking_project/project.xml | Go to diff View file | ||
R | tests/e2e/_fixtures/timetracking_project/users.xml | Go to diff View file | ||
A | plugins/timetracking/tests/e2e/cypress/cypress.json | +13 | −0 | Go to diff View file |
R | tests/e2e/full/cypress/integration/timetracking.spec.js | Go to diff View file | ||
A | plugins/timetracking/tests/e2e/cypress/cypress/support/index.js | +21 | −0 | Go to diff View file |
M | tests/e2e/full/cypress.json | +3 | −3 | Go to diff View file |
M | tests/e2e/full/run.sh | +8 | −1 | Go to diff View file |
M | tests/e2e/full/tuleap/setup.sh | +4 | −0 | Go to diff View file |