Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ciffi/tester

Node utilities for testing
https://github.com/ciffi/tester

Last synced: 2 days ago
JSON representation

Node utilities for testing

Awesome Lists containing this project

README

        

# tester

Node utilities for testing

## install

```bash
npm install -D @ciffi-js/tester
or
yarn add --dev @ciffi-js/tester
```

## configure env variables

_You can use .env file_

_TESTER_BASE_URL is required_

- TESTER_JIRA_EMAIL
- TESTER_JIRA_TOKEN
- TESTER_JIRA_URL
- TESTER_JIRA_FIELD
- TESTER_BASE_URL
- TESTER_LANG

## generate features and steps

generate feature and steps form JIRA (TESTER_JIRA_FIELD is the field id where you have your test scenario)

```bash
npm run tester:r JIRA-ISSUE-ID
or
yarn tester:r JIRA-ISSUE-ID
```

generate steps form feature file

```bash
npm run tester:g FILE-NAME
or
yarn tester:g FILE-NAME
```

run tests in terminal

```bash
npm run tester:r
or
yarn tester:r
```

run tests in terminal filtered by tags

```bash
npm run tester:r -- --env tags="@tagName"
or
yarn tester:r -- --env tags="@tagName"
```

run tests in browser

```bash
npm run tester:ui
or
yarn tester:ui
```

## write feature file

add your feature file in folder `cypress/features`