Need private packages and team management tools?Check out npm Teams »

barista-tools

0.0.6 • Public • Published

barista-tools

Command line library and tools to simplify communication with barista test running service.

NPM version NPM downloads Build Status Dependency Status License Code Style

Installation

npm install barista-tools

Usage

Create Test Env File

Generate a JWT on behalf ot eh user associated with the TEST_UID provided. Test environment file, cypress.env.json, is then built containing that JWT and other test config.

barista createTestEnvFile Within scripts section of package.json:

"build:testConfig""barista createTestEnvFile"

Then use in Dockerfile:

# Build Test Config File (cypress.env.json)
RUN npm run build:testConfig

Send Test Files For Build

Sends list of test files within test/e2e/integration folder to associated container build on Barista

Within scripts section of package.json:

"build:testFiles""barista sendTestFiles"

Then use in Dockerfile:

# Send test file data to Barista REST API
RUN npm run build:testFiles

Sending Test Results

Write results of test run to barista

$(npm bin)/cypress run --reporter barista-reporter$TEST_ARGS; echo \"$?\" | $(npm bin)/sendResultToBarista

License

MIT © Prescott Prue

Keywords

Install

npm i barista-tools

DownloadsWeekly Downloads

0

Version

0.0.6

License

none

Unpacked Size

39 kB

Total Files

21

Last publish

Collaborators

  • avatar