Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 608 Bytes

TESTING.md

File metadata and controls

26 lines (16 loc) · 608 Bytes

Testing

We use ginkgo for our acceptance and unit tests.

To install, you can follow these instructions.

Unit tests

Run ginkgo -r -p -race ..

Fakes

We use faux to generate fakes.

brew tap ryanmoran/tools
brew install faux

To generate a fake, run: go generate ./...

Acceptance tests

  1. Export the IaaS-specific environment variables.
  2. Export LEFTOVERS_ACCEPTANCE to be the value of the IaaS you want to test.
  3. Run ginkgo -r -p -race acceptance.