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.

1 vote
0 answers
59 views

How to slowMo a single test

I would like to slow down the test execution of test step. I´m testing a container which has two tabs and each tab has different table with data. When I click on a tab, it takes time until data is ...
Klim Bim's user avatar
  • 573
0 votes
1 answer
39 views

Android Compose Screenshot testing failing on pipeline with no visible differences

I'm trying out the new Compose Screenshot Testing https://developer.android.com/studio/preview/compose-screenshot-testing. When I create reference images locally, then run the tests to validate the UI ...
SmallGrammer's user avatar
  • 1,233
1 vote
0 answers
13 views

How to add mocked S3Client to spring context on integration tests

So basically I have a S3StorageService class that needs a S3Client: @RequiredArgsConstructor @Service public class S3StorageService implements StorageService<S3FileUploadResult> { private ...
Guilherme Silva's user avatar
2 votes
2 answers
42 views

Adding Data to a testcontainer using a function from a repository

I've set up a testcontainer for use during integration testing. Whilst it works and the test data is upserted to the test container, I cannot accurately check that my repository function, using JOOq, ...
tcampbell649's user avatar
0 votes
1 answer
39 views

Testing Multiple Classes with Dependecies with Reflections

we're recently building a java-compiler for college and need to test our compiled files with java reflections. I've had no problem with this tool until now. We need to test if multiple files with ...
user24538254's user avatar
-2 votes
0 answers
41 views

Is it possible to have 100% statement coverage but less than 100% branch coverage?

I think it's impossible, because you would need to follow every branch to cover every statement, but I'm entirely not certain..
tewerty's user avatar
  • 403
1 vote
0 answers
21 views

For each selenium request Google Chrome Browser generates 4 MB Browser Metrics file

I am using "Chrome for Testing" browser to execute my Jasmine / Selenium Test cases. While executing the test case, when browser start creating BrowserMetrics-XXXXXXXX-XXXX.pma files. Due to ...
Yogesh's user avatar
  • 175
-1 votes
0 answers
68 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
55 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
2 answers
64 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
59 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
84 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
0 votes
0 answers
17 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
31 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
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'...
R-me's user avatar
  • 21

15 30 50 per page
1
4 5
6
7 8
3372