Unit Test and Integration Test
Unit Testing
Run all Unit Tests
make testTest Specific Package(s) Only
# Single package
make test WHAT=./pkg/api
# Multiple packages
make test WHAT=./pkg/{api,kubelet}go test -v k8s.io/kubernetes/pkg/kubeletTest a Specific Test Case in a Given Package Only
Parallel Testing
Generate Test Reports
Benchmark Testing
Integration Testing
Run All Integration Tests
Specify Integration Test Cases
End-to-End (e2e) Testing
Start Cluster, Test, and Stop Cluster Eventually
Test Specific Case Only
Skip Test Cases
Parallel Testing
Clean Up Testing Resources
Useful -ctl
-ctlFederation E2E Testing
Node E2E Testing
Additional Explanation
Referenced Documents
最后更新于