@runforesight/foresight-cli-test-uploader
v1.2.9
Published
Foresight CLI Test Uploader ==========
Downloads
132
Maintainers
Readme
Foresight CLI Test Uploader
The Foresight CLI Test Uploader used to upload test reports to Foresight.
Installation
If @runforesight/foresight-cli
installed, don't need to install @runforesight/foresight-cli-test-uploader
.
npm install -g @runforesight/foresight-cli-test-uploader
Command
- [
foresight-cli upload-test
] - Upload test results
Options
| Flag | Requirement | Environment Variable | Default | --- | --- | --- | --- | -a, --apiKey | Required | FORESIGHT_APIKEY | None | -ud, --uploadDir | Required | FORESIGHT_UPLOADER_REPORT_DIR | None | -fw, --framework | Required | FORESIGHT_UPLOADER_TEST_FRAMEWORK | None | -fm, --format | Required | FORESIGHT_UPLOADER_TEST_FORMAT | None | -su, --signerUrl | Optional | FORESIGHT_UPLOADER_SIGNER_URL | ForesightSignedUrl | -upms, --uploadMaxSize | Optional | FORESIGHT_UPLOADER_SIZE_MAX | 20 MB | -uptout, --uploadProcessTimeout | Optional | FORESIGHT_UPLOAD_PROCESS_TIMEOUT | 30000 ms | -uptp, --uploadTrackProgress | Optional | FORESIGHT_UPLOAD_TRACK_PROGRESS | true | -apsmd, --archiveScanPathMaxDepth | Optional | FORESIGHT_SCAN_PATH_MAX_DEPTH | 5 | -aptout, --archiveProcessTimeout | Optional | FORESIGHT_ARCHIVE_PROCESS_TIMEOUT | 30000 ms | -p, --projectId | Optional | FORESIGHT_PROJECT_ID | None | -l, --logLevel | Optional | FORESIGHT_LOG_LEVEL | info
** FORESIGHT_UPLOADER_TEST_FRAMEWORK value should be one of the ("TESTNG", "JUNIT", "JEST", "PYTEST", "XUNIT2",
"CYPRESS", "MOCHA", "ELIXIR").
** FORESIGHT_UPLOADER_TEST_FORMAT value should be one of the ("JUNIT", "TRX").
- [
foresight-cli upload-test-coverage
] - Upload test coverage results
Options
| Flag | Requirement | Environment Variable | Default | --- | --- | --- | --- | -a, --apiKey | Required | FORESIGHT_APIKEY | None | -ud, --uploadDir | Required | FORESIGHT_UPLOADER_REPORT_DIR | None | -fm, --format | Required | FORESIGHT_UPLOADER_COVERAGE_FORMAT | None | -su, --signerUrl | Optional | FORESIGHT_UPLOADER_SIGNER_URL | ForesightSignedUrl | -upms, --uploadMaxSize | Optional | FORESIGHT_UPLOADER_SIZE_MAX | 20 MB | -uptout, --uploadProcessTimeout | Optional | FORESIGHT_UPLOAD_PROCESS_TIMEOUT | 30000 ms | -uptp, --uploadTrackProgress | Optional | FORESIGHT_UPLOAD_TRACK_PROGRESS | true | -apsmd, --archiveScanPathMaxDepth | Optional | FORESIGHT_SCAN_PATH_MAX_DEPTH | 5 | -aptout, --archiveProcessTimeout | Optional | FORESIGHT_ARCHIVE_PROCESS_TIMEOUT | 30000 ms | -p, --projectId | Optional | FORESIGHT_PROJECT_ID | None | -l, --logLevel | Optional | FORESIGHT_LOG_LEVEL | info
** FORESIGHT_UPLOADER_TEST_FORMAT value should be one of the ("JACOCO/XML", "COBERTURA/XML", "GOLANG").
Issues
For problems directly related to the CLI, add an issue on GitHub.