FOLIO integration test framework
(UITEST-2)
|
|
| Status: | Closed |
| Project: | stripes-testing |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None | Parent: | FOLIO integration test framework |
| Type: | Sub-task | Priority: | P3 |
| Reporter: | Niels Erik Nielsen | Assignee: | Niels Erik Nielsen |
| Resolution: | Done | Votes: | 0 |
| Labels: | sprint21 | ||
| Remaining Estimate: | 30 minutes | ||
| Time Spent: | 1 day | ||
| Original estimate: | Not Specified | ||
| Issue links: |
|
||||||||
| Sprint: | |||||||||
| Comments |
| Comment by Niels Erik Nielsen [ 24/Aug/17 ] |
|
Initial version is taking shape:
For now requires that the ui-modules put their tests in a specific directory and file (will be ./test/ui-testing/test.js). The file name could be parameterized (so that some tests could be included in the overall ui-testing tests and others not for instance) ui-testing would declare dependencies on the ui modules under test - could be releases or snapshots (see also
|
| Comment by Niels Erik Nielsen [ 24/Aug/17 ] |
|
A hook for running module tests from ui-testing is provided. To run Users' tests for instance: yarn install ui-testing ui-testing must have a dependency on users in package.json: "dependencies": { "mocha": "^3.4.2", "nightmare": "^2.10.0", .... "@folio/items": "^1.9.0", "@folio/users": "^2.9.0" } To run all @folio/users' tests (as declared in ui-users/test/ui-testing/test.js) yarn test-module -- -o --app=users To run a specific test: yarn test-module -- -o --app=users:patron_group To run tests from multiple UI modules - here all from checkout, two from users and one from items: yarn test-module -- -o --app=checkout/users:patron_group,new_user/items:new_item |