From e82c301f58c23f66cf49f8a8d705de90d4a1741c Mon Sep 17 00:00:00 2001 From: Luke Kysow Date: Mon, 1 Oct 2018 11:49:59 -0500 Subject: [PATCH] Add docs for how to run tests in Docker --- CONTRIBUTING.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 784f7836f..9133469fb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -44,6 +44,15 @@ atlantis server --gh-user --gh-token --repo-whiteli ``` If you get an error like `command not found: atlantis`, ensure that `$GOPATH/bin` is in your `$PATH`. +Running Tests Locally: + +`make test`. If you want to run the integration tests that actually run real `terraform` commands, run `make test-all`. + +Running Tests In Docker: +``` +docker run --rm -v $(pwd):/go/src/github.com/runatlantis/atlantis -w /go/src/github.com/runatlantis/atlantis runatlantis/testing-env make test +``` + ## Calling Your Local Atlantis From GitHub - Create a test terraform repository in your GitHub. - Create a personal access token for Atlantis. See [Create a GitHub token](https://github.com/runatlantis/atlantis#create-a-github-token).