Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.22 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.22 KB

Getting Captain working with Ginkgo

  1. 🧪 Ensure Ginkgo produces JSON output

ginkgo --json-report ./report.json ./... will produce Captain-compatible JSON output.

  1. 🔐 Create an Access Token

Create an Access Token for your organization within Captain (more documentation here).

Add the new token as an action secret to your repository. Conventionally, we call this secret RWX_ACCESS_TOKEN.

  1. 💌 Install the Captain CLI, and then call it when running tests

See the full documentation on test suite integration.

  - run: |
      captain run --suite-id captain-examples-ginkgo --test-results report.json -- \
        ginkgo --keep-going --json-report ./report.json ./...
    env:
      RWX_ACCESS_TOKEN: ${{ secrets.RWX_ACCESS_TOKEN }}
  1. 🎉 See your test results in Captain!

Take a look at the final workflow!