Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@testomatio/reporter
Advanced tools
Send test run reports to your testomat.io project. Get the API key from testomat.
You can refer sample tests from example folder of this repo. This is a basic example. If you need something full fledged you can refer this example repo
Add @testomatio/reporter
package to your project:
npm i @testomatio/reporter --save
For testcafe use testcafe reporter
npm i testcafe-reporter-testomatio
Make sure you load all your tests using check-test.
Add plugin to codecept conf
plugins: {
testomatio: {
enabled: true,
require: '@testomatio/reporter/lib/adapter/codecept',
apiKey: process.env.API_KEY || 'API_KEY', // pass in api key via config or env variable
}
}
Get the API_KEY from your testomat console
Run tests with
TESTOMATIO=<API_KEY> npx codeceptjs run`
If tests run parallel, like workers in codeceptJS use start-test-run
command to get proper reports
TESTOMATIO=<API_KEY> npx start-test-run -c 'npx codeceptjs run-workers 2'
Specify a command to run with
-c
option instart-test-run
Load the test using using check-test
if not done already. Get the test id from testomat account and add it to your mocha test like in this example
run the following command from you project folder
mocha --reporter ./node_modules/testomat-reporter/lib/adapter/mocha.js --reporter-options apiKey=API_KEY
Load the test using using check-test
. Add the test id to your tests like in this example
Add the following line to jest.config.js
reporters: ['default', ['../../lib/adapter/jest.js', { apiKey: API_KEY }]],
Run your tests.
Load you test using check-cucumber
Run cucumber test with this formatter and API key in environment in TESTOMATIO
TESTOMATIO=api_key ./node_modules/.bin/cucumber-js --format ./node_modules/@testomatio/reporter/lib/adapter/cucumber.js
Load the test using using check-test
.
run the following command from you project folder
TESTOMATIO={apiKey} npx testcafe chrome -r testomatio
Load the test using using check-test
.
Add the following line to conf.js
const JasmineReporter = require("@testomatio/reporter/lib/adapter/jasmine");
exports.config = {
onPrepare: () => {
jasmine
.getEnv()
.addReporter(new JasmineReporter({ apiKey: process.env.TESTOMATIO }));
},
};
run the following command from you project folder
TESTOMATIO={apiKey} npx @testomatio/reporter@latest -c 'npx protractor conf.js'
This feature is widely used when a run is executed on CI.
A run is created before the test is started and it is marked as scheduled
. Then
a report is assigned to that run using TESTOMATIO_RUN
environment variable and ID of a run:
TESTOMATIO={apiKey} TESTOMATIO_RUN={runId} <actual run command>
Give a title to your reports by passing it as environment variable to TESTOMATIO_TITLE
.
TESTOMATIO={apiKey} TESTOMATIO_TITLE="title for the report" <actual run command>
Create/Add run to group by providing TESTOMATIO_RUNGROUP_TITLE
:
TESTOMATIO={apiKey} TESTOMATIO_RUNGROUP_TITLE="Build ${BUILD_ID}" <actual run command>
Add environments to run by providing TESTOMATIO_ENV
as comma seperated values:
TESTOMATIO={apiKey} TESTOMATIO_ENV="Windows, Chrome" <actual run command>
To save a screenshot of a failed test use S3 storage. Please note, that the storage is not connected to Testomatio. This allows you to store your artifacts on your own account and not expose S3 credentials.
To save screenshots provide a configuration for S3 bucket via environment variables.
AWS S3 bucket is required to have
public-read
permission to operate. Public links are used by Testomatio to display screenshots in UI.
For local testing, it is recommended to store this configuration in .env
file and load it with dotenv library.
On CI set environment variables in CI config.
FAQs
Testomatio Reporter Client
We found that @testomatio/reporter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.