Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.08 KB

CONTRIBUTING.md

File metadata and controls

29 lines (19 loc) · 1.08 KB

Contributing

Building locally

dev1 is an example of a tag to test locally.

  • ./build-lgtm.sh dev1 will build the docker image locally.
  • ./run-lgtm.sh dev1 will run the docker image locally.

Linting

  • Markdown lint: markdownlint -f -i container -i examples/python/venv . (-f fixes simple violations, requires markdownlint)
  • Markdown link checker: lychee . (requires lychee)
  • Run all checks: ./scripts/lint.sh

Acceptance Tests

Acceptance test cases are defined in oats.yaml files in the examples directory. The test cases are run by oats.

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

  1. Check out the oats repository
  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 (or the sub-directory you're debugging)
  6. go to http://localhost:3000