Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@testomatio/reporter

Package Overview
Dependencies
Maintainers
1
Versions
287
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testomatio/reporter

Testomatio Reporter Client

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25K
decreased by-7.29%
Maintainers
1
Weekly downloads
 
Created
Source

reporter

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 testomat-reporter package to your project

codeceptJS

Make sure you load all your tests using check-test. Once all the test are loaded, get the test id from testomat account and add it to your scenario like in this example

Test id will be available in test view in your testomat account

[img]

Add plugin to codecept conf

testomat: {
  enabled: true,
  require: 'testomat-reporter/lib/adapter/codecept',
  apiKey: 'API_KEY',
}

Note: Get the API_KEY from your testomat console [img]

Normal run : Run the test with codecept command npx codeceptjs run

Worker : If you are using worker use the following command start-test-run -c 'npx codeceptjs run-workers 2 --verbose'

Mocha

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

Jest

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.

Cucumber

Load you test using check-cucumber

Add test ids to the scenarios like in this example

Create a formatter file passing the API like this example

Run cucumber test with this formatter

./node_modules/.bin/cucumber-js --format formatter.js

FAQs

Package last updated on 26 Apr 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc