A UI testing architecture for writing tests that is UI framework agnostic so the tests can be written once but used in any UI framework application. The tool contains the parser(s) that convert tests written in a unique format to testing framework-specific structure/functions used by the application (e.g. Mocha, Jest, etc). This architecture was created by the Watson Health Design Pattern & Asset Library team.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
(recommended) Use NVM for managing versions of Node when working on multiple projects.
We develop using a forking workflow for all users looking to do any work on Exported Tests.
Now that you you have Exported Tests set up locally, navigate to the project using the cd
command in the terminal and install dependencies using this command:
yarn
We distribute Exported Tests as ES6 and ES5 modules for backward-compatibility support of various testing frameworks. Import the desired module type from the following locations:
- ES 2015 (ES6) Modules-
dist/es/index.js
- Common JS (ES5) -
dist/cjs/index.js
- Browser compatible (UMD) -
dist/umd/index.js
To run the transpiler and generate the previous files use this command:
yarn build
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.