This is the development version for the new mwstake.org/wiki.
Project "Tests and Documentation Maker"
Jump to navigation
Jump to search
Developers can record user interaction steps to specify the intended use of their implemented functionality as Cypress scripts, which are used both for end-to-end testing as well as for end-user documentation.
|
In this context What links here? |
Overview
- Set up Software "cypress".
- Configure
cypress.config.js
. - Assemble your use cases using parametrized blocks.
- Run WYSIWYG interactive tests against Chrome, Firefox, etc.
- Get automagically parsed documentation.
How to use
Configure and run the tests
- PENDING: Somehow get https://github.com/MWStake/cypress-commands-core, which is an idea for the final place for what is currently https://github.com/dataspects/mediawiki-pages-EPPO/blob/main/cypress/support/commands.js
LEX2206071345
. - ACTION: Run
Cypress/Cypress
from Software "cypress" - ACTION: Add project by navigating EXACTLY into the root folder of a project, e.g. into
~/mediawiki-pages-EPPO/
(this is where the `cypress/` folder is/will be located in)- Cypress will indicate whether E2E testing is already configured
- Set baseUrl in
~/mediawiki-pages-EPPO/cypress.config.js
and restart
Create the test documentation
See https://github.com/dataspects/tests-documentation-maker
Develop
- https://docs.cypress.io/examples/examples/recipes
- https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests
- https://docs.cypress.io/guides/references/best-practices
- https://docs.cypress.io/guides/references/assertions
Collecting MWStake best practices: #MWSTAKEBP