Integration tests
See original GitHub issueBugs like #51 could be prevented by having tests that run against an actual Kubernetes cluster. This would catch wrong assumptions like return types of certain endpoints.
It’s a fair amount of work to get right, but I actually already have this set up for PSKubectl. It runs minikube in Travis, kubectl apply
’s test resources, runs commands and then does assertions against output of kubectl -o json
. Tests are written in PowerShell with Pester which makes interacting with kubectl
very easy.
Alternatively we could just consider PSKubectl an external test suite of this, maybe even trigger a build on every published version from a branch. Or CI here could run the test suite of PSKubectl by cloning the GitHub repo.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Integration testing
Integration testing is conducted to evaluate the compliance of a system or component with specified functional requirements. It occurs after unit testing and ......
Read more >What is Integration Testing (I&T)?
Also known as string testing or thread testing, integration testing involves integrating the various modules of an application and then testing their behaviour ......
Read more >Unit testing vs integration testing
Integration testing helps find issues that are not obvious by examining the application's or a specific unit's implementation. Integration ...
Read more >IntegrationTest - Martin Fowler
Integration tests determine if independently developed units of software work correctly when they are connected to each other.
Read more >What is Integration Testing? Examples, Challenges, and ...
Integration testing involves checking individual components or units of a software project to expose defects and problems to verify that they ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
kubectl delete --all
deletes all resources in a namespace 😃It’s fairly quick actually. Booting up Minikube takes a bit (45s), but every test is faster than you’d think. It
kubectl apply
’s the resources before every test and uses e.g. a deployment of a hello world docker image withimagePullPolicy: IfNotPresent
, so recreating pods takes about a second before every test.