Socket
Socket
Sign inDemoInstall

tesults

Package Overview
Dependencies
37
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tesults

Tesults API library.


Version published
Weekly downloads
7.6K
decreased by-14.35%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Tesults

Tesults is a test automation results reporting service. https://www.tesults.com

Tesults API library for uploading test results to Tesults in your node application.

Installation

npm install tesults --save

Configuration

var tesults = require('tesults');

Documentation

Documentation is available at https://www.tesults.com/docs.

API Overview

Upload test results using the results method:

tesults.results(data, function (err, response) {
    // err is undefined unless there is a library error
    // response.success is a bool, true if results successfully uploaded, false otherwise
    // response.message is a string, if success is false, check message to see why upload failed
    // response.warnings is an array, empty if no warnings
    // response.errors is an array, empty if no errors
});

The data param in results is an object containing your test results in the form:

var data = {
    target: 'token',
    results: {
        cases: [
            {
                name: 'Test 1',
                desc: 'Test 1 description.',
                suite: 'Suite A',
                result: 'pass'
            },
            {
                name: 'Test 2',
                desc: 'Test 2 description.',
                suite: 'Suite A',
                result: 'fail',
                reason: 'Assert fail in line 203, example.js'
            },
            {
                name: 'Test 3',
                desc: 'Test 3 description.',
                suite: 'Suite B',
                result: 'pass',
                params: {
                    param1: 'value1',
                    param2: 'value2'
                },
                files: ['/path/to/file/log.txt', '/path/to/file/screencapture.png']
            }
        ]
    }
}

The target value, 'token' above should be replaced with your Tesults target token. If you have lost your token you can regenerate one at https://www.tesults.com/config. The cases array should contain your test cases.

Support

support@tesults.com

Keywords

FAQs

Last updated on 15 Jan 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc