You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Contributing via Pull Requests (PRs)](#contributing-via-pull-requests-prs)
14
+
*[Contributing via Pull Requests (PRs)](#contributing-via-pull-requests-prs)
15
15
*[Pulling Down the Code](#pulling-down-the-code)
16
16
*[Running the Unit Tests](#running-the-unit-tests)
17
17
*[Running the Integration Tests](#running-the-integration-tests)
@@ -61,20 +61,56 @@ Before sending us a pull request, please ensure that:
61
61
1. Install test dependencies, including coverage, using `pip install ".[test]"`
62
62
1. Run the following tox command and verify that all code checks and unit tests pass: `tox tests/unit`
63
63
64
-
You can also run a single test with the following command: `tox -e py36 -- -s -vv <path_to_file><file_name>::<test_function_name>`
64
+
You can also run a single test with the following command: `tox -e py36 -- -s -vv <path_to_file><file_name>::<test_function_name>`
65
65
* Note that the coverage test will fail if you only run a single test, so make sure to surround the command with `export IGNORE_COVERAGE=-` and `unset IGNORE_COVERAGE`
Our CI system runs integration tests (the ones in the `tests/integ` directory), in parallel, for every Pull Request.
72
-
You should only worry about manually running any new integration tests that you write, or integration tests that test an area of code that you've modified.
71
+
Our CI system runs integration tests (the ones in the `tests/integ` directory), in parallel, for every Pull Request.
72
+
You should only worry about manually running any new integration tests that you write, or integration tests that test an area of code that you've modified.
73
+
#### Setup
73
74
74
-
1. Follow the instructions at [Set Up the AWS Command Line Interface (AWS CLI)](https://docs.aws.amazon.com/polly/latest/dg/setup-aws-cli.html).
75
+
If you haven't done so already, install tox and test dependencies:
76
+
1.`pip install tox`
77
+
1.`pip install .[test]`
78
+
79
+
#### AWS Credentials
80
+
Follow the instructions at [Set Up the AWS Command Line Interface (AWS CLI)](https://docs.aws.amazon.com/polly/latest/dg/setup-aws-cli.html).
81
+
#### Create IAM Roles
82
+
83
+
The tests use two IAM roles to give Step Functions and SageMaker permissions to access AWS resources in your account. Use the following commands in the root directory of this repository:
1. To run a test, specify the test file and method you want to run per the following command: `tox -e py36 -- -s -vv <path_to_file><file_name>::<test_function_name>`
76
111
* Note that the coverage test will fail if you only run a single test, so make sure to surround the command with `export IGNORE_COVERAGE=-` and `unset IGNORE_COVERAGE`
0 commit comments