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,563
questions
0
votes
0
answers
13
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'...
0
votes
1
answer
24
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 ...
0
votes
1
answer
49
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? ...
1
vote
1
answer
118
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 **...
-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
${...
-3
votes
1
answer
47
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 ...
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 ...
0
votes
1
answer
19
views
Node not found with androidTests despite tagging
I'm rendering UI composables conditionally, based on UiState, however, tagging composables at the root with testTag doesn't make them findable in instrumentation tests.
Error:
java.lang....
0
votes
0
answers
16
views
Selenium webpage data missing
When running a selenium test I am running into an issue wherein sometimes I can see the data element present in UI but when seeing the element on inspect in dev mode I do not see the related data ...
0
votes
1
answer
67
views
How to ignore lines of code from coverage in vitest?
I have my unit tests setup with vitest and I am looking for a way to ignore specific lines of code from vitest coverage.
Looking for something similar to /* istanbul ignore next */.
Is there something ...
0
votes
1
answer
35
views
Cypress test on github action is not failing as expected
I'm building a CI with github action and I want to run a login attempt test, there are two specs, the first makes the attempt (where it blocks for 10 minutes for the next attempt) and the other checks ...
-1
votes
0
answers
12
views
Error excecuting test on rapise with firefox or chrome
im trying to excectue a test on rapise, but i get this error.. Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and ...
0
votes
1
answer
27
views
Cucumber is not showing number of scenarios and steps passed or falied
`I am learning Cucumber. I am following the 10 minutes tutorial.
According with the tutorial, I should see:
Failed scenarios:
hellocucumber/is_it_friday_yet.feature:4 # Sunday isn't Friday
1 Scenarios ...
0
votes
1
answer
21
views
ArchRule fails on proper test
I have test
@ArchTest
public static final ArchRule daoShouldBeUsedOnlyByHelper = theClass(SegmentDAO.class).should()
.onlyBeAccessed()
.byClassesThat(simpleName(SegmentHelper.class....
1
vote
2
answers
21
views
Angular Radio Group [(ngModel)] value not updating in jasmine test
I have this html code in my component
<mat-radio-group aria-label="Select an option" [(ngModel)]="searchType" (change)="changeSearchType()" class="form-row"&...