Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

The default test stage name will be Unit Tests but can be changed to anything matching your requirements via the environment variable SEALIGHTS_TEST_STAGE updated just before executing the tests.

Note

If you want to skip the capture of coverage for Unit Tests by the Sealights Golang agent, please set SEALIGHTS_DISABLE environment variable as true just before triggering Go Unit Tests.

Functional Tests Using Ginkgo

...

Code Block
languagebash
SEALIGHTS_AGENT_TOKEN=$(cat ./sealights/sltoken.txt)
#SEALIGHTS_BUILD_SESSION_ID="123"
SEALIGHTS_LAB_ID="my_lab_id"
SEALIGHTS_TEST_STAGE="Functional Tests"
./sealights/slcli scan --tests-runner --enable-ginkgo --workspacepath "$(pwd)/Functional API Tests" --path-to-scanner ./sealights/slgoagent --scm none 

...