Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Dec 12, 2013
1 parent bec978f commit a4b6a5a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ real-world cost associated with running the tests. Be aware of that prior
to running the tests. Additionally, many tests will leave left-over artifacts
(AMIs) that you'll have to manually clean up.

## Required Software
## Running Tests

### Required Software

Before running the tests, you'll need the following installed. If you're
running on Mac OS X, most of these are available with `brew`:
Expand All @@ -21,7 +23,7 @@ running on Mac OS X, most of these are available with `brew`:

* [AWS cli](http://aws.amazon.com/cli/)

## Configuring Tests
### Configuring Tests

**For tests that require AWS credentials:**

Expand All @@ -30,7 +32,7 @@ Set the following self-explanatory environmental variables:
* `AWS_ACCESS_KEY_ID`
* `AWS_SECRET_ACCESS_KEY`

## Running Tests
### Running

These tests are meant to be run _one file at a time_. There are some
test files (such as the amazon-chroot builder test) that simply won't
Expand All @@ -40,3 +42,10 @@ never work.
If you're working on Packer and want to test that your change didn't
adversely affect something, try running only the test that is related to
your change.

```
$ bats builder_amazon_ebs.bats
```

Note: Working directory doesn't matter. You can call the bats test file
from any directory.

0 comments on commit a4b6a5a

Please sign in to comment.