Category "integration-testing"

Jest test sometimes fails (DynamoDB integration tests)

I have Serverless application (node:14.19.1-bullseye-slim) with almost 400 tests. There are mostly functional tests with using of local DynamoDb. The problem is

Spring Mvc integration test fails

I want to write an integration test for a delete method in my controller, but no matter how many times I tried rewriting it, I am still getting different errors

Citrus httpServer & httpClient tests

I'm using Citrus for perform integration tests based on http requests. The test should perform steps as follows: Sending a POST http request to external service

Flutter tests - Having two Integration tests in a same group ()

I'm trying to run two tests in a same group in one test file. If I split them into two separate test files, they are working fine. But if I add them in a group,

Running multiple test case on Firebase Test Lab

I am trying to run my integration test on Firebase Test Lab. flutter build apk -t lib/main_dev.dart ./gradlew app:assembleAndroidTest -Ptarget=lib/main_dev.dart

How to run a single test that is excluded

I have integration tests named with "IT" at the end and the tests are excluded by default. My build.gradle contains: test { if (!project.hasProperty('runITs

How to reset a method mock in Spock?

I had a mocked bean in a configuration: @Profile('test') @Configuration class TestSecurityConfig { private final mockFactory = new DetachedMockFactory() @Pr

Failed to get correlation key for `citrus_message_correlator_HttpClient`

I have a CitrusEndpoints server configuration @Bean public HttpServer myService() { return CitrusEndpoints. http(). server().

How to run @QuarkusIntegrationTest in a Gradle project?

I want to run a Quarkus integration test in order to verify OpenAPI yaml generated from the source code. According to the documentation, it should be possible t

Cannot deserialize value of type `java.lang.String` from Array value from mockmvc

public class ModelDTO implements Serializable { private Long id; private String datasetName; @JsonRawValue private String json; } Post API i

How to silence Serilog in integration tests with the new minimal hosting model of .NET 6

I have a .NET 6 web API project with existing integration tests for some of the API endpoints. The project uses Serilog for logging and everything was fine so f

Selenium test cases get stuck in build agents. How to resolve?

We are running 200 - 300 UI test cases from an Azure pipeline. All the test cases are running on self hosted Windows agents, where all the dependencies are inst

MockMvc Error: java.lang.NoSuchFieldError: defaultInstance

I am trying to write some integration tests in my spring application. POM: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.

How to properly test kafkaTemplate.send() within a function in Junit5?

I'm learning how to write tests and especially tests that have a producer in it. I cannot post all the classes because it's HUGE (and not mine, I should just pr

How to test a .NET 4.8 client running against a .NET 5.0 server in a developer-friendly way?

I don't know if this question is appropriate for this forum. I am developing a C# ASP.NET Core webservice and a client-side library that uses this webservice. A

Why are only top-level requests proxied when configuring http clients such as postman or K6

The Goal Run integration tests but stub sub-requests to a specific domain that occur within the API code itself Ideally, do this via docker-compose because I wa

Use rust cargo to run tests in workspace root

I've got the following rust project layout: project_name ├── crate_1 │ ├── src │ │ ...

Integration testing using @SpringBootTest is not picking auto-configuration of library configured using spring.factories

We have a library ,in order to auto-configure the library we use spring.factories file under(src/main/resources/META-INF) which provides classes to auto-configu

unable to test UUID

I have a spring boot 2.6.7 app, using Liquibase, Gradle and Spock. I have a class that uses a guid format string as the ID: @Entity @Table(name = "devices") pu

Differences between Microsoft.AspNetCore.Mvc.Testing and Microsoft.AspNetCore.TestHost packages

I have used several times the package Microsoft.AspNetCore.TestHost to host Asp.Net Core Web API applications in my integration test. With Asp.Net Core 2.1 the