Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 747 Bytes

CONTRIBUTING.md

File metadata and controls

19 lines (13 loc) · 747 Bytes

Contributing

Acceptance Tests

Acceptance test cases are defined in oats.yaml files in the examples directory. The test cases are run by oats. The declarative yaml tests are described in https://github.com/grafana/oats/blob/main/yaml.

If a test case fails (lets say "examples/jdbc/spring-boot-reactive-2"), follows these steps:

  1. Check out the oats repo
  2. Go to the oats folder
  3. cd yaml
  4. Install ginkgo: go install github.com/onsi/ginkgo/v2/ginkgo
  5. TESTCASE_TIMEOUT=2h TESTCASE_BASE_PATH=/path/to/this/repo/examples ginkgo -v -r -focus 'jdbc-spring-boot-reactive-2'
  6. go to http://localhost:3000 and login with admin/admin

Use -focus 'yaml' to run all acceptance tests.