https://github.com/codeception/e2cloud
Cloud runner for NodeJS tests
https://github.com/codeception/e2cloud
Last synced: 6 months ago
JSON representation
Cloud runner for NodeJS tests
- Host: GitHub
- URL: https://github.com/codeception/e2cloud
- Owner: Codeception
- Created: 2018-10-29T11:48:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T09:10:22.000Z (about 7 years ago)
- Last Synced: 2025-06-21T15:40:52.341Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## e2cloud
Run your tests as Google Cloud functions.
Uses [ReportPortal](http://reportportal.io) to store results.
## Idea
[WIP]
## Commands
### Init
Prepare tests for running in cloud.
```
e2cloud init
```
Specify the testing framework you use. Example:
```
e2cloud init codeceptjs
```
### Deploy
Deploys function and all tests to cloud
```
e2cloud deploy
```
### Run
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"
```
## Extending
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 cloud**
* `getTests` - runs **locally**. Returns names of tests scheduled to run
* `getReportPortalConfig` - runs **locally**. Returns ReportPortal credentials
* `package.json` contains all packages required to run test in cloud
* `init.js` - CLI installer.
* Prepares `index.js` from `index.gcloud.js`
* Checks for all required packages
* Copies `package.json`
Then a framework should be added to `command/init.js` into array of supported frameworks.
## License
[WIP]