Skip to main content

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
-1 votes
0 answers
55 views

How to set timeout for each test in spring boot

I would like to set a timeout for Spring integration test. For example this basic test hangs on my side: @SpringBootTest public class MainTest { @Test @Timeout(value = 10) void ...
DPM's user avatar
  • 1,608
1 vote
1 answer
50 views

cypress: how to mock useTranslation in test? [closed]

I want to ask that I have a component EmailSignUpView that use react-intl to translate text content. import { useTranslation as t } from '@utils/hooks'; <div className={styles.notifyContainer}> ...
JeffChen's user avatar
  • 207
1 vote
1 answer
47 views

How to mock sqlalchemy's async session?

Code snippet from sqlalchemy.ext.asyncio import async_sessionmaker, create_async_engine engine = create_async_engine(url="") session_maker = async_sessionmaker(engine) How can I mock the ...
Michael Xia's user avatar
1 vote
1 answer
55 views

How to unit test for multipart.Form

I need to write tests for that function: func Parse(f *multipart.Form) ([]Person, error) It's important to say, that multipart.Form.Value is not just key:value, thats more complicated json, simple ...
kirin's user avatar
  • 31
1 vote
1 answer
69 views

ActiveRecord::NotNullViolation: RuntimeError: NOT NULL constraint failed: drives.created_at

I am using latest ruby 3.3.3 and latest rails 7.1.3.4. I am new to rails and I am learning it. Sorry if my request seems dumb to some. I got this error when I run tests. It seems that ActiveRecord is ...
Ghassen Rjab's user avatar
-2 votes
0 answers
15 views

Regarding stress utility installation issue [closed]

i tried to intstall stres utility through mac os terminal when i tried ,its not working properly sudo apt install stress -ng reply message :The operation couldn’t be completed. Unable to locate a ...
ANEESHPANAMCHICKAL's user avatar
0 votes
0 answers
15 views

How to test composables background?

I have an application written in compose and I want to test it's background based on state stored in viewmodel and interaction with the composable item, like: Box( modifier = Modifier ...
Arman TabibZadeh's user avatar
0 votes
0 answers
22 views

How to load env vars from .env before running C# tests through VS Code

I am trying to get rid of the .runsettings file which I have in my project repo and keep all my config variables in a single .env file. The one place where I am stuck in is in the scenario when ...
tech-ebe's user avatar
0 votes
0 answers
10 views

Relay: Expected to receive an object where `...UserForm_user` was spread, but the fragment reference was not found`

I am testing a component with React testing library and Jest. The component: import { useMutation, useFragment } from 'react-relay'; import PropTypes from 'prop-types'; import { useState } from 'react'...
R-me's user avatar
  • 21
0 votes
1 answer
18 views

Create a functionnal test for a Symfony bundle

I created a Symfony bundle that allows me to manage users/permissions/profiles across multiple applications. This bundle provides a set of routes, forms, services, etc. I already have unit tests that ...
Alexandre's user avatar
  • 355
0 votes
1 answer
36 views

Angular reCaptcha V2 Token Testing

I'm new to Angular and I'm trying to get the reCaptcha token in a test. How can I emulate click on the re-capture 'I am not a robot box' or something similar and logging the token response in a test? ...
phebus's user avatar
  • 11
1 vote
1 answer
75 views

TS2305: Module '@angular/core/testing' has no exported member async

I updated angular version from 17 to 18 and because of which some modules are no longer supporter especially in spec.ts files while importing them. Like async from @angular/core/testing and **...
Nixon Darius's user avatar
-1 votes
0 answers
15 views

Allure/Pytest: how to provide a startup script rather than .py test file

We have a test framework and a test startup script that are using .sh for setting up enviroment + framework dependency We now need to add allure into our tests We start test scenarios with ${...
BadThings's user avatar
-3 votes
1 answer
45 views

Instantiating large number of objects from different types

Assume there is interface: type CustomMetrics interface { Update() error Init() error } This interface will have many different implementations (structs), each implementation will be shipped ...
Deyan Georgiev's user avatar
0 votes
0 answers
12 views

Exception in thread "main" java.lang.NoClassDefFoundError: org/openqa/selenium/bidi/HasBiDi

Can anyone please help me to solve this error? Exception in thread "main" java.lang.NoClassDefFoundError: org/openqa/selenium/bidi/HasBiDi I tried many times but unable to resolve this. In ...
Rajesh devan's user avatar

15 30 50 per page