Run your tests as Google Cloud functions. Uses ReportPortal to store results.
[WIP]
Prepare tests for running in cloud.
e2cloud init <framework>
Specify the testing framework you use. Example:
e2cloud init codeceptjs
Deploys function and all tests to cloud
e2cloud deploy
Executes each test as a cloud function.
Starts ReportPortal session and executes Cloud Functions as post requests.
e2cloud run
Just list all possible tests without running them in cloud:
e2cloud run --dry-run
Specify name of build:
e2cloud run --title "CI Build id $BUILD"
To add your own framework see frameworks
directory.
You should create directory for own framework and create files:
index.gcloud.js
file which contains functions:runTest
- runs a test in the cloudgetTests
- runs locally. Returns names of tests scheduled to rungetReportPortalConfig
- runs locally. Returns ReportPortal credentials
package.json
contains all packages required to run test in cloudinit.js
- CLI installer.- Prepares
index.js
fromindex.gcloud.js
- Checks for all required packages
- Copies
package.json
- Prepares
Then a framework should be added to command/init.js
into array of supported frameworks.
[WIP]