50,461 questions
2
votes
2
answers
902
views
StoreKit 2 Not Fetching Products in Sandbox (iOS 18.2, Xcode 16.2, macOS 15.3.1)
I’m struggling to get StoreKit 2 to fetch products in my SwiftUI app while using a sandbox user. I think I’ve followed all necessary setup steps in Xcode, App Store Connect, and my physical test ...
Best practices
2
votes
0
replies
25
views
Testing with corroutines
Let's say I have Worker class and I want to do long running tasks in the background until user stops it or it is cancelled. It changes state of the class while doing the work and I want to write tests ...
Tooling
0
votes
1
replies
29
views
How to write tests which analyze HTTP requests made on NextJS server side?
I work on a NextJS project with Pages Router. We are using Jest for unit tests and Playwright for E2E.
The application we are making is a funnel with several steps. Each step is a form with several ...
Best practices
0
votes
0
replies
44
views
Testing in MVVM architecture. What to test and how to approach TDD?
I’m currently working on a personal Android project using Kotlin and Android Studio, following a basic MVVM architecture:
─main
│ ├───java
│ │ └───com
│ │ └───example
│ │ └───...
0
votes
1
answer
470
views
Could you explain Test Driven Development using my specific example? [closed]
I am trying to understand Test Driven Development, but still do not get it.
Let's imagine, that we need to write a function, that returns power of a number.
def power_of_a_number ( number, power ):
......
-3
votes
0
answers
75
views
Entering text with no dependency on current keyboard layout
If a GUI test must involve entering text in a text field, a convenient shortcut is robot.enterText(..) (available in both FEST and its fork, AssertJ Swing).
I was under the impression the utility is ...
1
vote
1
answer
12k
views
How to test Reac Lazy inside an object
At the project I'm working on, there's a few named exports like the object below:
export const object = {
component: React.lazy(() => import('some-component'))
}
(They have more properties but ...
5
votes
3
answers
6k
views
How can I intentionally create a simple runtime error?
I'm testing a batch script, to check that it's handling any errors when a compiled jar is run.
What's the simplest snippet of a code I can add to my java to cause a runtime error?
4
votes
2
answers
3k
views
Pytest- use a generator for mark.parametrize
I have a mongo db with a very large collection that I need to run tests on with Pytest.
I am trying to do it the usual route of using the mark.parametrize dectorator but with pymongo.cursor Cursor ...
28
votes
3
answers
65k
views
React testing library id instead of data-testid?
Would be any difference if I used HTML id attribute instead of data attributes like data-testid?
Reference for the use of data-testid in testing:
https://testing-library.com/docs/queries/bytestid/
0
votes
2
answers
10k
views
Automatically re-run failed only scenario in cucumber java+testng
How can I make only failed scenarios to be run again automatically on failure ?
Here is some clue on what I am doing:
Pass TestRunner class from command line through cucumber-testng.xml file at run-...
1
vote
0
answers
38
views
Locust POST Request with .xlsx File to Flask Endpoint Returns a 503 Error
I am testing my Python Flask app using Locust to load-test a POST request with an .xlsx file attachment. However, I consistently encounter a 503 Service Unavailable error.
This issue ONLY occurs when ...
0
votes
1
answer
787
views
API Testing - Best Strategy to adopt
I have few questions for you. Let me give some details before I throw the questions.
Recently I have been involved in Rest api test automation.
We have a single rest api to fetch resources,( this api ...
Best practices
0
votes
0
replies
16
views
Is there a way to reference contracts deployed on anvil in a typescript test?
Right now, I am deployed contracts on anvil with a script, logging the addresses, and hardcoding it into my viem typescript test. Is there a more seamless way to do ts tests in conjunction with smart ...
Best practices
0
votes
0
replies
40
views
How to run tests with CDK pipelines
We are building and deploying a few system using the AWS CDK Pipeline, mostly with dotnet
Most cases we are building the deployed apps using dockerfile assets referenced in the CDK
Should we run the ...
5
votes
2
answers
3k
views
kotest change environment variables
I am writing tests for Ktor app using Kotests, but stumbled into the problem how can I change env variables for tests preferably globally. I have tried adding withEnvironment but it throw quite ...
23
votes
2
answers
28k
views
Faking time without changing Windows system clock
Does anybody know of a Windows tool to report fake dates/times to a process?
Apparently there are Linux programs that can be used to test how the software will react in the future / in a different ...
0
votes
1
answer
67
views
Can I construct my own env::Args instance in Rust for testing purposes? [duplicate]
I'm writing a Rust program where I do manual command-line argument parsing. I skip the first argument since that's the executable and I don't care about that, then check the second argument for what ...
76
votes
6
answers
51k
views
How to test the performance of an Android application?
How can I test an application for performance in Android? What is the support provided in Android and how do I use it?
10
votes
4
answers
11k
views
Automated Installation of an .apk from the Google Play Store
I'm writing some end-to-end tests of an Android-TV-App using Python and my own implementation of the ADB-Protocol. This works fine so far, I can send commands, get ui-dumps ect.
However, since the ...
0
votes
2
answers
227
views
JetBrains Aqua - Multiple HTTP Requests
I want to test one HTTP endpoint with thousands of different request bodies which I can generate in Excel. I also want to compare results (or results fields) to expected results which I will have in ...
-7
votes
0
answers
90
views
How to use Google Chrome's MCP to open devTools [closed]
I'm not impressed with Chrome + Gemini Cli MCP because I can't open the devtools... Let me explain: I want to run an e2e test with this MCP, but it can't enter the URL I give it in mobile mode for an ...
Advice
0
votes
2
replies
100
views
How to run and test Software Code and then put it in Hardware
I'm trying to build my own handheld games console similar to a gameboy.
Currently for the POC im using the Arduino Uno, seperate SD Card Reader Module and 2.4 inch TFT Display. I want to put the game ...
1
vote
1
answer
1k
views
Is there any way to use callsFake with sinon spies?
I am trying to migrate from expect to chai and Sinon.
I expect we do something like this
this.check = expect.spyOn(module, "method").andCall(function(dep) {
return dep;
});
But I want this ...
60
votes
6
answers
14k
views
Can you mark XUnit tests as Explicit?
I'm making the transition from NUnit to XUnit (in C#), and I was writing some "Integrated Tests" (ITs) that I don't necessarily want the test runner to run as part of my automated build process. I ...