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.

0 votes
0 answers
4 views

Java 21 Spring Boot 3.3.1 How to get GraphQlTester to use main/resources/graphql-documents/

I have a Java 21 Spring Boot 3.3.1 application. I have several GraphQL APIs, and I also need to send several GraphQL requests to other services. I also have GraphQlTester tests. However, I have ...
Ebad's user avatar
  • 283
0 votes
0 answers
25 views

catch/ignore async exceptions from futures

Here is a simple app that has 3 buttons that increment counter. import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({...
Malnen's user avatar
  • 1
0 votes
0 answers
9 views

Laravel Pest Tests with RefreshDatabase Trait Not Refreshing SQLite Database

I'm having trouble with my Laravel feature tests using Pest. Despite using the RefreshDatabase trait, my SQLite database isn't being refreshed between test executions. This causes test failures, as ...
psb's user avatar
  • 21
-4 votes
0 answers
24 views

Java Integration tests failing when I run them all at once, but separately they all pass [duplicate]

For some reason, integration tests in my project have started to fail when I run them all at once. error that I get is(I had to remove some of the stack trace because it was too long): java.sql....
Stefan Besovic's user avatar
1 vote
0 answers
16 views

convert object to mock stream

given below was my object class .here i am trying to convert this object class to mock stream public class WebHookBody { public string entryId { get; set; } } i am trying to add ...
Harikarthik's user avatar
0 votes
0 answers
18 views

ParameterizedTest JUNIT5 with suspend functions

I'm trying to clean a little bit my code and when testing my datasource I'm repeating a lot the test that returns connection and service error, and I'd like to have a bunch of code that tests ...
StuartDTO's user avatar
  • 881
0 votes
1 answer
10 views

JMeter freezes when attaching a large-sized base64 text on body data

I've been trying to attach a base64 encoded image (large size) to my POST body data but it freezes every time I tried to paste it. Any suggestion for a good practice of attaching base64 texts on POST ...
Ree's user avatar
  • 1
0 votes
0 answers
32 views

error while use a await for async function call from a xunit testing [closed]

In below code if i add any await im getting error i don't know why Xunit class: public class EventTriggerServiceTest { private readonly Mock<ILogger<EventTriggerService>> ...
Harikarthik's user avatar
0 votes
1 answer
19 views

Configuration composent testing Cypress with StencilJS? [closed]

how to configure component testing with Cypress in a project using the StencilJS framework? Cypress : v13 I was inspired by the configuration examples with the React and Angular framework, but ...
Wassim's user avatar
  • 1
0 votes
0 answers
17 views

How to change the value of a MUI DatePicker or TimePicker in Jest/react-testing-library?

I have a component that uses the Material UI datepicker and timepicker. function MyComponent() { const [dateFilter, setDateFilter] = useState(moment()); const [timeFilter, setTimeFilter] = ...
CodeMan's user avatar
0 votes
1 answer
19 views

Jenkins withcredentials

I have a script which contains git clone, however I saved the credentials using jenkins UI under jenkins credentials so whenever I check out normally I use withcredential, so how can I run the script ...
newjenkinsuser's user avatar
0 votes
1 answer
14 views

Ktor integration test with custom hostname AND port

Using ktor-testing I need to create a test which uses a custom hostname and port at the same time. See my previous question with custom hostname on port 80 which works, but not on port 8080. class ...
actonchart's user avatar
0 votes
0 answers
20 views

How do I test view models for Android? I've been struggling with this for over a week

I am trying to test view model classes for my app. They use viewModelScope.launch and when I run tests using Firebase emulator, data will sometimes go to Firebase and sometimes won't resulting in ...
user24160237's user avatar
0 votes
0 answers
14 views

Mockito not able to mock Room Dao Class?

I have the following code to try and test my AppRepository class: @RunWith(AndroidJUnit4::class) @MediumTest class AppRepositoryTest { @Mock private lateinit var counterDao: CounterDao @Mock ...
JamieRhys's user avatar
  • 306
1 vote
1 answer
21 views

Failing the Angular tests

I am trying to run the basic angular test that angular makes when creating a component, but they keep on failing, and i cannot find why or how to fix it. These are the tests i am trying to run: it('...
Giel v Bussel's user avatar

15 30 50 per page
1
2 3 4 5
3370