Questions tagged [testing]
Verifying the behavior of a software system against the expected behavior of that system.
1,498 questions
1vote
1answer
156views
Automatic regression tests with change detection in blue/green deployments
Our product is almost fully deployed in CI, however one remaining part that we have to wrap up is still the regression (update: characterization / golden master) testing: So considering we have a blue/...
4votes
3answers
314views
Clearing static state before testing each method
My SUT class depends on external static state (which generally should be avoided, I know). How do I make sure my tests do not depend on their order of execution? I mean other by introducing some reset(...
0votes
0answers
70views
Is Spring Boot Unit Test Coverage with Integration tests only a bad practice?
I have recently come across a few codebases at work where the previous developers chose to reach the >80% coverage criteria by writing only integration tests with the @SpringBootTest annotation ...
3votes
2answers
209views
Ensuring unit test data stays accurate
Say I have a method that expects data to be in some form to perform accurately. In the actual service/application flow, that data is formed upstream in other methods or services. How can I ensure the ...
1vote
4answers
808views
Microservices shared end-to-end testing: Which version(s) of other microservices to use?
Introduction I am reading Building Microservices (second edition) by Sam Newman. In chapter 9 the author highlights 2 problems when desiging end-to-end testing for microservices: Which version of the ...
1vote
1answer
112views
NUnit testOf attribute usage
What are the use cases of TestOf? I'm new to NUnit testing and from what I have seen, most people don't use this attribute that much. From my experience, TestOf helped me to quickly identify what ...
2votes
1answer
266views
Unit testing a Web Worker in JavaScript/TypeScript - Best Practice
I got assigned with writing unit tests for a class that instantiate a Worker inside in it's constructor. The code looks simmilar to this, class SomeClass { private _worker: Worker; constructor(...
3votes
3answers
935views
Testing for non-existence of a method in API
I am designing a fluent builder pattern API that branches and allows different options based on what has already been called. For example: Build().Foo().Bar() is valid code, but Build().Baz().Bar() ...
6votes
3answers
281views
Quality Assurance for Large SQL Script Releases
I'm often releasing large SQL scripts for projects and minor works - my problem is that there's nothing (except the logs) to indicate that the release was successful. There could be an object missing, ...
0votes
1answer
82views
Scoped E2e testing on a microservice
As many, we use microservices in my company and there's some debate in my group whether a microservice has e2e tests on it's own. I know e2e tests by definition are user flow tests. Lets take for ...
0votes
2answers
378views
Origins of Unit Testing in hardware?
According to the Wikipedia entry for Unit Testing, it is defined as a technique for testing components of a system in strict isolation from each other, and it is described as having been expressly ...
18votes
10answers
7kviews
Would a middle ground between unit and integration tests be optimal
I've read many posts about unit tests only testing one object/class and mocking of objects should only be for direct dependencies of the object under tests. The only other option discussed for ...
-1votes
2answers
122views
Approach for implementing access permission tests for a large number of actions and multiple affiliations
I'm obviously having trouble creating a question that fits StackExchange guidelines in regard of opinions vs metrics. Any help to improve this question is highly appreciated. I'm searching for a ...
-2votes
3answers
255views
How to present serious flaws in third-party software to non-technical users
We have third party software being tested. Our software has to interface with this, hence my involvement. There are some things I consider serious technical flaws. I'd like to communicate these things ...
1vote
5answers
817views
Should you test configuration?
There's a (mis)conception that you don't have to test configuration But what if your configuration is in the form of runnable code? What if it's not just static values? I wrote an abstraction for ...