Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing infrastructure #21

Open
whd opened this issue Jul 9, 2015 · 0 comments
Open

Add testing infrastructure #21

whd opened this issue Jul 9, 2015 · 0 comments

Comments

@whd
Copy link
Member

whd commented Jul 9, 2015

Reaper should have some test coverage, using the standard testing package and go test for unit tests. There may be some difficulty in mocking the API, which needs to be investigated. Hashicorp code is probably a good resource for how to test the AWS SDK components of the program. It may additionally be prudent to have a heavier-handed integration / validation test that actually spins up AWS resources to test actual resource destruction and modification.

It is possible to generate similar output to what the API produces by creating structs manually, but it would be easier and nicer to be able to load in the resources from a serialized representation.

We should set up Travis to run these tests on PRs. go vet and -race should be integrated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant