barista-tools

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

Usage no npm install needed!

<script type="module">
  import baristaTools from 'https://cdn.skypack.dev/barista-tools';
</script>

README

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