7,065 questions
Best practices
0
votes
4
replies
110
views
How to stub dependency at the end of a longer call chain?
My integration test built with JUnit calls through a chain, say
MyIntegrationTest → CUT → A → B → ExternalService
Meaning: my test causes a method in an instance of the component under test (or class ...
Best practices
0
votes
0
replies
111
views
Best architecture for frontend integration tests in a multi-repository setup with shared page objects
I need to design a frontend integration test architecture from scratch for an application split across many repositories, where each repository owns a separate feature of one product (such as user ...
Advice
0
votes
1
replies
104
views
Looking for open source projects that demonstrate different types of software testing (unit, integration, e2e) for learning purposes
Context:
I'm trying to learn software testing in practice, not just theory. I want to study real-world projects where I can observe and practice different testing strategies.
What I'm looking for:
I'm ...
Best practices
0
votes
0
replies
76
views
rust session scoped integration tests with docker
I have a CLI tool that connects to a remote via SSH and does a bunch of operations on that host. To test this I want to write multiple integration tests. The tests should spin up a docker compose ...
Score of 2
2 answers
131 views
Testing if a dialog is pop-up with Playwright for Java
I have a question about dialog in Playwright Java.
My understanding is that you can handle dialog through onDialog(), offDialog(), onceDialog(). But they are not suitable for testing if a dialog is ...
Advice
0
votes
1
replies
232
views
Is there a sandbox, emulator or synthetic feed for testing a Datadog integration without real data?
I'm building an integration that queries Datadog metrics via its API. I want to write proper tests for my integration layer, but my Datadog account currently has no ingested data and I'd rather not ...
Score of -1
1 answer
190 views
Docker can't pull ryuk image for TestContainers
I'm just getting started with Docker and using TestContainers for a personal C# & MongoDB project for some integration & database testing, but I'm having a hard time getting it working ...
Score of 0
1 answer
60 views
Flutter golden tests: Only capture part of the GUI?
Is it possible to use Flutter's matchesGoldenFile to compare just parts of the GUI in an integration test?
Say, I have an app MyApp with a page that contains a column with a widget RedBox and a button....
Best practices
0
votes
1
replies
59
views
How to avoid parallel Jest tests interfering with each other's databases?
If I run integration tests sequentially (Node.js, TypeScript) they are fine, but it can be really slow, but if I make them run in parallel they edit the same database and end up causing weird bugs. Is ...
Score of 1
0 answers
66 views
Jest mock not working in class singleton instance
I have created a class for connecting nats and assign it client property. application works as expected. But when I try mock the connection class for integration tests, then it does not work as ...
Advice
0
votes
2
replies
113
views
Why do integration tests remove IDbContextOptionsConfiguration<TContext> instead of the DbContext itself
When writing EF Core integration tests, I often see examples that remove the existing DbContext registration like this:
public class CustomWebApplicationFactory : WebApplicationFactory<Program>
{...
Score of 0
0 answers
182 views
Azure function not launched by Aspire when running test in normal test mode
I have a weird problem that I need som input on when running a test in normal test mode (not debug).
Tools
Visual Studio code, Version: 1.107.0
Mac OS, M4
Background
An azure function exists, we can ...
Score of 0
1 answer
171 views
Patrol Flutter integration tests show "0 tests ran" on BrowserStack but pass locally
I'm trying to run Patrol integration tests on BrowserStack, but test discovery fails with "0 tests ran" even though the same tests pass locally on an emulator.
Environment
Flutter 3.38.4
...
Score of 0
0 answers
68 views
How do I create Test Suites in Kiwi TCMS?
I'm using Kiwi TCMS and I can't find the option to create a new Test Suite.
I expected to see a "New Suite" button under Test Cases, but it's not visible in my interface.
These are the steps ...
Advice
0
votes
2
replies
140
views
ASP.NET Core 10 integration tests using multiple web projects/entry points
When creating integration tests for ASP.NET Core 10 web apps, we use the WebApplicationFactory<TEntryPoint> class. When a single ASP.NET Core web project is used as SUT, it's simple and it works:...