question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Integration tests

See original GitHub issue

Bugs 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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
felixfbeckercommented, Dec 18, 2018

kubectl delete --all deletes all resources in a namespace 😃

1reaction
felixfbeckercommented, Dec 17, 2018

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 with imagePullPolicy: IfNotPresent, so recreating pods takes about a second before every test.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found