Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 988 Bytes

TESTING.md

File metadata and controls

41 lines (28 loc) · 988 Bytes

Testing

Provider Tests

In order to test the provider, you can simply run make test.

$ make test

Acceptance Tests

You can run the complete suite of <REPLACE_ME> acceptance tests by doing the following:

$ make testacc TEST="./<REPLACE_ME>/" 2>&1 | tee test.log

To run a single acceptance test in isolation replace the last line above with:

$ make testacc TEST="./<REPLACE_ME>/" TESTARGS='-run=NAME_OF_TEST'

A set of tests can be selected by passing TESTARGS a substring. For example, to run all <REPLACE_ME> tests:

$ make testacc TEST="./<REPLACE_ME>/" TESTARGS='-run=NAME_OF_TEST'

Test Parameters

The following parameters are available for running the test. The absence of some of the non-required parameters will cause certain tests to be skipped.

  • TF_ACC (integer) Required - must be set to 1.

For example:

export TF_ACC=1
$ make testacc TEST="./NAME_OF_TEST/" 2>&1 | tee test.log