Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Cypress

This repo contains tests for Cypress.io test application with Testomat.io plugins.

Installation

This is a playground for your first steps in testing, so instead of installing it from NPM it is recommended to clone it from repo instead.

git clone git@github.com:testomatio/examples.git && cd examples/cypress

Install dependencies.

npm i

Usage

Loading Tests

  1. Create empty project in Testomat.io.
  2. Obtain {API_KEY} from Testomat.io.
  3. Run npx check-tests to upload tests data into testomat.io. Pass {API_KEY} as TESTOMATIO environment variable:
TESTOMATIO={API_KEY} npx check-tests cypress "**/**.spec.js" -d cypress/**

Environment variables It is recommended to store Testomatio {API_KEY} as environment variable and never save it in the source code. Set them directly when running tests or use dotenv package to save environment variable in a file and load them for tests.

Publishing Test Results

TESTOMATIO={API_KEY} npx cypress run