365 questions from the last 365 days
Advice
1
vote
1
replies
14
views
Need help learning StressStimulus (Performance Testing)
I’m looking to learn the StressStimulus tool for performance testing. A single 2–3 hour session would be sufficient.
I’ve tried searching for online courses but haven’t found any good ones, as the ...
0
votes
1
answer
68
views
Swift Testing - load data before the tests start
This is a follow-up to a previous question: Xcode XCTestCase - wait for setup to complete before starting tests
In the comments it was suggested to switch to Swift Testing instead of using XCTestCase, ...
-2
votes
0
answers
74
views
How can http.Server be made to hold open a connection? [closed]
I'd like to add a unit test for Go's http.Server.Shutdown() timing out, but there are no connections held open when the shutdown signal is sent, so it never gets to checking for timeouts, even though ...
4
votes
1
answer
127
views
How should I test Serialization/Deserialization with Google Test?
So I have a framework that serializes my input data to either text or binary (depending on what I choose).
This serialization writes to those files with output streams and stores parameters.
Example: ...
Best practices
0
votes
5
replies
92
views
API testing approach
My team is developing functional component (developed in C#) which is API based. The component will handle API requests from external system (future to have UI test). I prefer to have API testing ...
-1
votes
0
answers
60
views
How do I properly configure @testing-library/react-native to run component tests in a turborepo monorepo? [closed]
We are currently developing a platform in the tourism and travel sector. We created a monorepo with TurboRepo for the frontend of our mobile and web applications using React/React Native/Next.js. I ...
0
votes
0
answers
50
views
xUnit tests fail when launched from Solution Explorer
When I run my tests from the Solution Explorer (clicking "Run" from the tree), 13 tests from my test suite fail. This is 100% reproducible.
When launching the same tests from the Test ...
1
vote
0
answers
95
views
mock feature in SeaORM v1.1.19 makes DatabaseConnection lose the trait to clone it
Im doing a Actix Web rust backend with SeaORM, I finished and it works fine, so I'm doing some tests, SeaORM has a mock feature, which you can enable in the Cargo.toml file, but enabling it makes the ...
Best practices
0
votes
3
replies
71
views
Tests with shared (lengthy) setup
Suppose I have a test suit with a lengthy setup (perhaps, it's a GUI test).
I don't want to execute the setup for each test method since I want the test suit to finish sooner.
I also don't want to ...
Best practices
0
votes
2
replies
84
views
Nested Mockito stubbings — keep or replace?
I'm not sure nested stubbings like this one is good practice.
given(settingsMock.getConnections()).willReturn(connections);
will(i -> given(settingsMock.getConnections()).willReturn(...
0
votes
0
answers
78
views
Using Combine for the first time. XCTTest completes before combine promise is fulfilled
func getCharactersList(from url: URL) -> AnyPublisher<[Character], NetworkRequestError> {
if shouldReturnError {
// Fail with concrete NetworkRequestError
return Fail(...
1
vote
1
answer
64
views
Laravel 12 CommandFinished does not run for php artisan test test
I would like to implement some logic after all tests in Laravel 12 application finished. I found this blog from 2024 https://laravel.com/docs/12.x/events#main-content which is based on CommandFinished ...
Advice
0
votes
3
replies
66
views
How to use a separate classes (stubs) in vitest?
I've migrated my angular 21 tests from jasmine to vitest. And for some of my tests I use separate helper classes (like Page object models). For example:
export class SignUpPageObject {
constructor(...
1
vote
1
answer
617
views
Spring Boot 4.0.0. cannot resolve symbol DataJpaTest
I am new to Java and Spring Boot. I am building a small CRUD app to learn about JPA and the H2 database.
This is my POM file:
<?xml version="1.0" encoding="UTF-8"?>
<...
Best practices
1
vote
2
replies
85
views
Implementing Page Object Model (Playwright vs Cypress)
I started using Playwright, and one of the first things I noticed is that if you're trying to implement a custom page object that stores methods, click actions, and assertions, you should create a ...