integration-testing Questions

3

Solved

I am writing integration tests for my app which uses .net5 I have used WebApplicationFactory with IHostBuilder for setting up environment. Custom fixture -> public class TestFixture<T> : W...
Surber asked 15/11, 2021 at 12:13

4

Solved

I followed the documentation of microsoft for Integration testing: https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-6.0#introduction-to-integration-tests In .net...
Interlocutress asked 10/12, 2021 at 4:13

4

Solved

I have the following project structure: MyProject --src --test --acceptance --step_definitions --features --unit I would like to be able to run my cucumber tests (in test/acceptance) separ...
Barathea asked 10/8, 2013 at 17:34

0

Description: I'm working on setting up integration tests for my ASP.NET Core application using WebHostFactory. I've configured a test server with custom authentication and an in-memory database, bu...

1

Solved

I have a simple health check test which looks like this: public class HealthCheckEndpointTests : IClassFixture<ItemsApplicationFactory> { private readonly ItemsApplicationFactory _factory; ...

5

Solved

I'm trying to write simple integration test in my current android project written totally in Kotlin. The problem is that the test doesn't even start and fails with the following error: Error:(4, ...

1

I'm facing some problems when trying to inject a bean with the annotation @MockBean inside a Junit test. As a result I get the real service injected instead of the mocked one, but the weird behavio...

3

Solved

Also shared here: https://github.com/tomakehurst/wiremock/issues/625 I'm writing an integration test to verify that my application that interacts with a REST API handles unsuccessful requests appro...
Casie asked 8/3, 2017 at 0:49

4

Solved

I'm trying to paste text that's already in my clipboard into a textbox, but I dont understand how to use "eventInit" to do this. I've read the documentation on how to paste text into a te...

7

I would like to disable @EnableAsync when I run my integration tests. I tried to override the configuration file which is annotated with @EnableAsync with a class with the same name in my test pac...
Aholah asked 21/11, 2017 at 10:51

3

Solved

I'm using Flyway to handle the database migration. Everything is working fine: the default location of the migration files is: main/resource/db/migration/V1... I am running integration tests and...
Itemized asked 30/9, 2015 at 16:44

2

Being able to customize the Host configuration in integration tests is useful to avoid calling services that shouldn't run at all during testing. This was easily achievable using the standard Start...
Narcoanalysis asked 19/6, 2022 at 17:57

3

Solved

We are using FlurlClient in a few projects and familiar with their fluent interface. We now want to use it in asp.net core integration tests using TestServer. The example from http://asp.net-hacke...
Wretch asked 3/5, 2018 at 12:58

10

Solved

I'm trying to get an "walking skeleton" of my app up that will use S3 for persistence. I would like to use a fake S3 service so each developer's desktop can read/write at will. I thought mocks3 wo...
Brazil asked 7/7, 2011 at 19:28

4

I have a simple link_to_function in my view template <%= link_to_function "add new category", "$('#category_name').focus()" %> and I want to test this with capybara using request specs. Ba...
Stormie asked 29/10, 2011 at 17:34

2

Solved

I have two objects of the same type, the type has a string field, in the first object the value is null, in the second one the value is "", how can I force fluent assesrtions to assume that this is...
Yand asked 4/6, 2014 at 9:35

5

I encountered a very strange situation when using Spring and Wiremock for integration testing: suddenly, one specific test started failing intermittently. A snippet of the error below: org.springfr...
Moorman asked 25/8, 2021 at 19:48

3

I am using actix-web to write a small service. I'm adding integration tests to assess the functionality and have noticed that on every test I have to repeat the same definitions that in my main App...
Dispute asked 28/5, 2022 at 11:20

5

I have a flaky junit test that only fails if I run all my tests. I think that one test is causing another test to fail, I want to prove it before I try to fix it. If I run all tests, it runs the &q...
Morass asked 24/12, 2015 at 18:42

1

I am having a issue with gradle 8.0.2 using JVM Test Suite plugin. The integration test cannot get the dependencies from the main project. The build.gradle looks like this. The integration test cla...
Dragoon asked 18/4, 2023 at 7:22

19

I am very new to using test containers. My test is failing with below exception. Running com.mastercard.example.testcontainers.testcontainersexampple.DemoControllerTest 2020-04-08 14:27:08.441 INF...

3

I'm currently writing an integration test (https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-5.0) for my ASP .Net Core 5 REST API. The API is using Serilog for lo...
Phototube asked 21/12, 2020 at 9:32

4

This is my testing class: class RocketListVMTest { @get:Rule var instantTaskExecutorRule = InstantTaskExecutorRule() private lateinit var sut: RocketListVM private var activeOnlyToggle = fals...
Thermoelectric asked 24/2, 2021 at 1:22

5

Solved

In my Spring-Maven--Hibernate-Mysql runnint on Tomcat web app I'm running 2 types of Junit integration tests using 2 different Junit categories: LocalTests - running in process (no server require...
Especial asked 22/7, 2012 at 15:38

5

I have an integration test source folder set up in gradle like so: subprojects { apply plugin: 'java' apply plugin: 'idea' sourceCompatibility = 1.8 configurations { integrationTestCompile....
Habile asked 6/2, 2017 at 9:31

© 2022 - 2025 — McMap. All rights reserved.