Questions tagged [testing]
Software testing is any activity aimed at evaluating an attribute or capability of a program or system and determining that it meets its required results.
testing
50,554
questions
0
votes
0
answers
10
views
.Net 8 XUnit: Different service implementation for unit testing
I'm working on a .Net 8 API and I'm currently creating tests, and my concern is about mocking the connection to the MySql database.
We use CQRS (Mediator pattern) and in the queries handler a ...
0
votes
0
answers
17
views
Vite application produces different localhost url on different systems
I'm QA and building pipeline script to run some UI tests against a web application. App is made with react & vite. My task is to write script which launches the app & tests. I got commands ...
0
votes
0
answers
6
views
Disable secrets manager and s3 for integration testing when contextLoads is called
I have a SpringBoot application which I am trying to test. I'm struggling with this test
@SpringBootTest
@ActiveProfiles("test")
public class LicenceApplicationTests
{
@Test
@...
0
votes
0
answers
19
views
Creating mocks for images with Jest
I have a function that returns an array of objects with a title and an image:
import fire from 'assets/svg/fire.svg';
import water from './img/water.svg';
import wind from './img/wind.svg';
const ...
0
votes
0
answers
8
views
Test Fails after Establishing Connection to Database
I have a repo for a node app that uses an object to store the data temporarily. I updated the code to connect to MongoDB and some of the tests start failing.
The test is one with supertest.
The code ...
0
votes
0
answers
7
views
Error: Timeout of 2000ms exceeded with test: wts, @web/test-runner
I'm using "test": "wtr", which I presume is web testing runner, which uses mocha but not in the package.json, only in the package-lock.json I can see references to mocha.
I get ...
1
vote
0
answers
18
views
mocking out imported objects in Python
Lets say there is a module headache that defines an object that is then imported and used by code I want to test:
# defined in headache/__init__.py
problem = Problem()
then it's imported by Foo:
# ...
-1
votes
0
answers
25
views
How to test for server down scenarios [closed]
My Java code is communicating with a middleware and printing the result in another screen.
I've used ConnectionTimeoutException to handle any connection issues and SocketTimeoutException to handle ...
0
votes
0
answers
13
views
Pywinauto, pytest test failing after successful dialog interaction
I'm writing a test script using pywinauto and pytest to automate interacting with an application. The script opens the first dialog, inputs a filepath into the text box, and clicks the OK button to ...
0
votes
0
answers
17
views
why getting ModuleNotFoundError: No module named 'deepchecks.tabular' even thouh deepchecks is installed?
While trying to install the deepchecks framework for testing my ML project using
pip install deepchecks --upgrade I got following error.
meson setup C:\Users\dev\AppData\Local\Temp\pip-install-dhiqjs\...
-5
votes
0
answers
29
views
System.exit(0) in test case without system-lambda [closed]
I am working on component testing. Where one of my component exits with the system.ext(0) for success scenario and System.exit(1) for failure scenario.
I previously used System-Lambda from catch ...
0
votes
1
answer
19
views
colcon test do not run/find ros2 Google test
The issue
Writing a ROS2 library package and its associated Google tests, after compilation, output library and relative Gtest program are stored has expected within /build and /install folders. ...
1
vote
1
answer
18
views
Router of Next/Router is undefined in test.tsx file
LeftSidebar.tsx component
import { usePathname, useRouter } from 'next/navigation';
interface LeftSidebarProps {
leftSidebarData: InnerPathItem;
leftSidebarDataIndex: number;
}
export const ...
0
votes
0
answers
21
views
Error: Cannot register property 'TestType' as value type 'System.Guid' because it was already registered as 'System.String'
I updated the Visual Studio from 2019 to 2022 and started to get the following error when running unit tests (I'm using Google Test Adaptor (v 1.17.0.32) and Google Test framework for a C++ project):
#...
0
votes
0
answers
14
views
Apple in-App Redemption sheet does not dissmiss automatically or on Open Application button click in Swift
I'm using Swift 5 and the proper method to present the redemption sheet. However, once I redeem the code in debug mode redemption sheet dismisses correctly and showing a purchase success alert. But ...