* Added additional training unit tests * Add main training function tests * Add full training test coverage * Fix import sys * Fix poorly named test |
||
|---|---|---|
| .. | ||
| tests | ||
| .gitignore | ||
| Dockerfile | ||
| README.md | ||
| pytest.ini | ||
| requirements.txt | ||
| run_all_tests.sh | ||
README.md
Unit tests for AWS SageMaker KFP Components
How to run these tests
Method 1 : Run these tests using docker
- Clone the git repo
git clone https://github.com/kubeflow/pipelines.git - Build the dockerfile
cd pipelines/components/aws docker build ./ -f ./sagemaker/tests/unit_tests/Dockerfile -t amazon/unit-test-aws-sagemaker-kfp-components - Run all unit tests
docker run -it amazon/unit-test-aws-sagemaker-kfp-components
Method 2 : Run these tests locally
- Clone the git repo
git clone https://github.com/kubeflow/pipelines.git - Install the pip packages required for testing
cd pipelines/components/aws/sagemaker/tests/unit_tests/ pip install -r requirements.txt - Run all unit tests
# while in the same directory pipelines/components/aws/sagemaker/tests/unit_tests/ ./run_all_tests.sh