ci: add e2e tests with cypress
* Creates E2E tests using Cypress and includes two tests * Improves yarn.lock file * Includes documentation * Cypress project id * test e2e w/ ci and video * run unit command before e2e * Also cache cypress * Persist cypress to next build step * Try a different path * Try without working dir * Persist less data, but restore yarn/cypress cache in next step * Install cypress to invalidate cache * Add e2e as a blocker for merged publishing
This commit is contained in:
1 parent
30bcc07dda
commit
612832069d
14 files changed
+741
-55
No files matched your search
@@ -98,6 +98,33 @@ hosted PACS and test data,
|
||||
[check out our Essential: Getting Started](https://docs.ohif.org/essentials/getting-started.html)
|
||||
guide.
|
||||
|
||||
### E2E Tests
|
||||
|
||||
Using [Cypress](https://www.cypress.io/) to create End-to-End tests and check whether the application flow is performing correctly, ensuring that the integrated components are working as expected.
|
||||
|
||||
#### Why Cypress?
|
||||
|
||||
Cypress is a next generation front end testing tool built for the modern web.
|
||||
With Cypress is easy to set up, write, run and debug tests
|
||||
|
||||
It allow us to write different types of tests:
|
||||
|
||||
- End-to-End tests
|
||||
- Integration tests
|
||||
- Unit tets
|
||||
|
||||
All tests must be in `./cypress/integration` folder.
|
||||
|
||||
Commands to run the tests:
|
||||
|
||||
```js
|
||||
// Open Cypress Dashboard that provides insight into what happened when your tests ran
|
||||
yarn run cypress
|
||||
|
||||
// Run all tests using Electron browser headless
|
||||
yarn run cypress:all
|
||||
```
|
||||
|
||||
### Contributing
|
||||
|
||||
> Large portions of the Viewer's functionality are maintained in other
|
||||
|
||||
Reference in new issue
Block a user