50,461 questions
0
votes
1
answer
75
views
How to continue to the next Cypress test after one fails?
I have a bunch of Cypress tests in node.js. I can fire them off using npm run eg npm run home-page-test and can string them together as such:
npm run home-page-test && npm run about-page-test &...
-1
votes
1
answer
26
views
ADB bridge error within vm and host machine
So , i have deployed android studio emulator (nexus 5) on host machine (windows 11) and kali vm on vmware . I have been trying to connect adb bridge between them , i have adb access on my host console ...
0
votes
1
answer
64
views
Verify in android ui test that a text annotated with annotationlink.clickable is clicked
I have a composable Text() inside a detail screen, which is containing an annotated String, which includes a fragment where I indicate that it must be clicked to execute an internal action within the ...
0
votes
0
answers
31
views
TestConfiguration for @KafkaListener
I have a bunch of KafkaListeners:
@KafkaListener(
id = XXX_LISTENER_ID,
containerFactory = "kafkaListenerContainerFactory",
topics = {"${XXX}"},
groupId = "${...
1
vote
0
answers
25
views
How to mock a child component that doesn't implement ControlValueAccesor
I have a child component that is a dropdown select and I need to add formControlName from ReactiveForms, but this dropdown is not implementing the ControlValueAccesor. When I go to test with Karma, ...
0
votes
2
answers
137
views
With the Gradle JaCoCo plugin, how to include coverage data of an additional test task?
I am using Gradle in version 8.13.
I am using the Gradle JaCoCo Plugin.
Besides the default Gradle test task, I have added an additional test task to some of the Gradle subprojects:
var ...
0
votes
1
answer
102
views
EmbeddedKafkaBroker using fixed port
I need to use EmbeddedKafkaBroker for Integration Testing where I am not using Spring-Kafka templates in my spring-boot app. I am using Apache kafka-clients jar as a dependency. My configuration is,
@...
0
votes
0
answers
23
views
Testing Spring WS - how test BadRequest
I would like test my service return a 400 Bad request when it receive a payload with bad attribute.
I'm using an valid payload and add an invalid attribut. In SOAP-UI, it return a 400 bad request, but ...
0
votes
1
answer
61
views
Jmeter Throughput Shaping Timer Not Working As Expected
I'm testing my spike test configuration by adding a Dummy Sampler and an Ultimate Thread Group. Based on my settings, I should be getting approximately 750 hits in the first 15-minute timeframe. ...
0
votes
0
answers
78
views
Playwright execute setup database with 2 devices
I have 2 devices, chromium and a tablet. I want to execute a setup db script before each device, because the execution of the test on the first device may alter the results of the second one.
So the ...
0
votes
1
answer
41
views
How to write an integration test on an urwid tui?
While trying to test a urwid-based question with input validation and autocomplete suggestions, I am experiencing some difficulties. The code that I am trying to test using pytest is given in the two ...
0
votes
2
answers
172
views
How to run parallel tests with Selenium Standalone?
I am developing a Java-based test automation project and using Selenium Standalone to run my tests. Currently, I can run tests on a single browser instance, but I want to execute parallel tests.
I ...
0
votes
0
answers
15
views
Not able to access Spring Component from inside of a TestNG ITestListener
When I try to access my component testDataOperationsProcessor like this:
@Component
class TestStateListener : ITestListener {
private lateinit var testDataOperationsProcessor: ...
3
votes
2
answers
2k
views
Failed React test with console message: "Cannot find module 'react-router-dom'"
I'm making a unit test in a React application (that i created with the command "create-react-app" without using any framework or build tool), that i am developing for a university project, ...
1
vote
0
answers
126
views
UIToolkit in Unity not triggering clicked event during playmode unit tests
Problem: I made a simple menu system with UItoolkit in unity. Essentially just a start button that when pressed navigates to a new scene. When I the test scene, everything works fine, but when I tried ...
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 ...
0
votes
1
answer
596
views
Valkey / Redis Testcontainer Config
i am unsure how to setup Testcontainers with valkey in my spring project.
As redis is no more open source, i chose to implement caching with valkey 8.0.0 instead.
But i am having trouble setting up ...
0
votes
1
answer
186
views
How would I structure my annotation and Spring Configurations so that I can use an annotation to set up a TestContainer test without an abstract class
I want to be able to simply do
@MyTestConfig
class MyTests {
@Autowired SomeJpaRepo repo;
@Test
void findAll() {
assertThatCode(repo::findAll).doesNotThrowAnyExceptions();
}
}
What I ...
0
votes
0
answers
50
views
Add classes to be excluded from test coverage in vscode
When running junit tests coverage shows well, but includes some classes which I don't want. Some searching results suggested adding something like jacoco and that vscode would read exclusions from ...
0
votes
0
answers
39
views
How to get the visible/rendered value of a Text-widget while Testing?
I have kind of an responsive Text-widget which uses as much space as possible, but truncates overflowing Texts.
To get stable and reliable code-base I want to have an test. which verifies that ...
0
votes
1
answer
113
views
MockWebServer start on Android API 35 cause
I have an app on API 34 that runs MockWebServer for the tests.
Mockweberser is triggered only for tests that are mocked.
Mockweberser class inits on port 8080
class MockedkWebServer {
...
init {
...
1
vote
1
answer
69
views
How to provide different test cases by use of one test component for a directive which changes the element stlye in ngOnInit() in Angular 19?
I have a directive which looks like the following:
import { Directive, ElementRef, Input, Renderer2, OnInit } from '@angular/core';
@Directive({
selector: '[appChangeStyle]'
})
export class ...
1
vote
1
answer
66
views
Asserting a method call on a Facade not the underlying proxied class
I'm trying to write tests to assert that methods called in my AppServiceProvider boot method are present & enforced logic.
So far I'm using mocks & reflection, however I am having an issue ...
1
vote
1
answer
85
views
Using nextJest with multiple projects
I have the following jest.config.ts:
import type { Config } from "jest";
import nextJest from "next/jest.js";
const createJestConfig = nextJest({ dir: "./" });
const ...
0
votes
0
answers
72
views
Maestro CLI error: java.lang.UnsatisfiedLinkError: org.fusesource.jansi.internal.CLibrary.isatty(int) on Fedora 41
I am trying to use Maestro CLI to test my application, but I encountered an issue when running the maestro command. Here is the error I receive:
Exception in thread "main" java.lang....