The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [integration-testing]

A form of software testing where individual software modules (or components) are combined and tested as a group. Integration testing happens after unit testing, and before system testing.

0
votes
0answers
8 views

Junit5- jupiter all tests suite @BeforeAll @AfterAll not working

The before and after methods not working in JUnitPlatform. The code is below. import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.platform.runner....
-1
votes
1answer
12 views

How can unit, functional, acceptance, and integration testing be explained in a single example / scenario?

Refer to single use case or an example that examples each unit, functional, acceptance, and integration testing for that example. We've got theory, but practical examples can help understand concepts ...
0
votes
0answers
14 views

is controller testing functional testing?

I am really interested in different aspects of testing. I hope you can really read this and just give me your ideas if you have experience with this. Let's break down. Fact 1: It's said that when we ...
0
votes
1answer
31 views

Assert_receive to test Genserver message handlers?

I would like to be able to catch messages going to my GenServer's handle_info in tests, to check those are what I intend to. 1/ Is there a way to print somehow every message coming through? 2/ Using ...
-1
votes
1answer
22 views

Spring Cloud Stream Listener not pausing / waiting for the messages in Integration Testing Code

I am having a Application which connects to RabbitMQ through Spring Cloud Stream, which works prefectly. For Integration test cases i am trying to use the sample - https://github.com/piomin/sample-...
1
vote
2answers
46 views

How to integration_test that kind of genserver? Proper use of assert_receive?

I have an app remotely connected to another one’s node. The app needs to be able to call a distant function using this node. It works when called from iex, but I really struggle to get my integration ...
0
votes
0answers
10 views

How to mock Multipart api for testing

I am writing a UI integration test case in espresso. Flow i am testing is: Pick image from gallery Upload to server (Multipart request) Get some recommendation on that image later on from server. ...
0
votes
1answer
22 views

I am not able to mock the Dao method using mockito in Spring boot application

I am not able to mock Dao method in spring boot. Please let me know what I am doing wrong in below code. I tried using SpringJUnit4ClassRunner and mock the Dao method. But still, it's going into the ...
0
votes
0answers
31 views

Maven Integration-Test how to set-up POM correctly for different Profiles

I am having problems controlling how Maven copies resource files during the Dev Compile/Test steps and the Integration-Test Compile/Verify steps. I've created two Profiles in Maven, Dev and ...
1
vote
1answer
25 views

Is it a good practice to unit test controller classes in Spring MVC

I used to unit test my controller classes just like any other normal Java class. I mean without using Spring's MockMvc. But then I realized that this way I won't be able to be sure that I've set up ...
0
votes
1answer
22 views

How to write tests that use Azure SDK?

I'm wondering how I can write test, that will run in sonar, that will test the following method? It seems almost impossible as sonar won't be able to actually get an azure subscription, so that will ...
2
votes
1answer
26 views

Why aren't these database modifications rolled back despite the presence of an `@Transactional`?

Written a short convenicence extension for Testcontainers: fun JdbcDatabaseContainer<*>.execute(query:DSLContext.()-> Query){ val connection = DriverManager.getConnection(this.getJdbcUrl(...
1
vote
3answers
46 views

If a method calls another method, is it a unit test or integration test?

Im a beginner in tdd concept, so my question is, if I have a method that calls another method, as simple as it may sound, it is a unit test or a integration test? If its a Integration Test, it is just ...
0
votes
0answers
25 views

Random Jest Test Failures with error cannot read property of undefined

I am facing random test failures when running Test Suite with an exception of 'cannot read property of undefined' I am guessing it has something to do with race conditions happening somewhere but to ...
0
votes
0answers
13 views

How to connect to docker container launched in a pipeline stage?

I'm trying to add API tests to a gitlab-cicd pipeline of a webservice project. In order to run the API tests I've added a pipeline stage where a Docker image of the webservice is built and published, ...
0
votes
1answer
20 views

Reuse Spring application context across different Spock tests

I would like to reuse the same Spring context across several integration tests written in Spock framework. According to the documentation context caching is based on classes property of @...
0
votes
1answer
19 views

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

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 package Microsoft.AspNetCore.Mvc....
0
votes
0answers
25 views

Maven Failsafe: NoClassDefFoundError for integration tests

Setup: Kotlin integration tests in a spring boot application. Tests work fine when I run them with IntelliJ. When I try to run the integration tests with maven, though: [ERROR] Failed to execute ...
0
votes
0answers
12 views

How you manage EM or EMF in integration testing with testcontainers?

I have java web application and I would like to write integration tests for service layer. I decided to use testcontainers, so in test I would like to call service, which will work with database in ...
4
votes
4answers
85 views

How to overwrite a scoped service with a decorated implementation?

I'm trying to write an ASP.NET Core 2.2 integration test, where the test setup decorates a specific service that would normally be available to the API as a dependency. The decorator would give me ...
0
votes
0answers
23 views

How to write Integration Tests on a Spring WebFlux Application's controller without using @WebFluxTest

I want to write Integration Test on a controller of my Spring WebFlux Application but i don't want to use neither @WebFluxTest nor @SpringBootTest... Why ? It's because these annotations start the ...
0
votes
1answer
23 views

Scenario Outline without examples - Cucumber

Does Scenrio outline works without Examples and just a table in every tool or Intellij is the special one? I read the Gherkin reference and it specifies that a Scenario outline must have an Examples ...
0
votes
1answer
31 views

In java Spring Boot ,How to pass in-memory LDAPConnection object to ldapService in integration testing?

I am writing integration tests for my API. I have to test flow that's why I implemented in-memory ldap. I have used InMemoryDirectoryServer which return LDAPConnection object for in memory operations. ...
1
vote
1answer
62 views

Building an integration test for an AspNetCore API that uses IdentityServer 4 for Auth

I've built a simple AspNetCore 2.2 API that uses IdentityServer 4 to handle OAuth. It's working fine but I'd now like to add integration tests and recently discovered this. I used it to build some ...
0
votes
1answer
79 views

how to test react-select with react-testing-library

App.js import React, { Component } from "react"; import Select from "react-select"; const SELECT_OPTIONS = ["FOO", "BAR"].map(e => { return { value: e, label: e }; }); class App extends ...
1
vote
1answer
92 views

Java - how to call Java main() from a new process thread

I am trying to build out Integration Tests (IT) for an application. The application has at its centre a Server, written in Java, that set-ups a message queue from which it polls for messages sent to ...
3
votes
2answers
47 views

Datetime field in a DjangoModelFactory breaks integrated tests (2.1)

I want to add an "expiry_date" field to a DjangoModelFactory, to match its related model. Here is my implementation : models.py def set_default_expiry_date(): return timezone.now() + datetime....
0
votes
0answers
28 views

Spring Unit Test - NestedServletException instead of custom exception

I am trying to write integration tests for REST API built using Spring MVC. Following is my controller class. @RestController @RequestMapping("/api") public class ZoningToolRestController { @...
0
votes
1answer
12 views

How to log in automatically on the server for Meteor integration testing with a custom login handler

I'm writing integration tests for my Meteor app using Mocha and Chai. These tests are for the server functionality only. I could fake up a Meteor user with Sinon but I would ideally like to start by ...
0
votes
1answer
11 views

Why shutting down of testing with Pax-Exam takes so long?

After running integration-tests with pax-exam (4.13.1), shutting down of maven-surefire-/failsafe-plugin takes about 30 seconds. No matter if tests failed or not. I tried different configuration of ...
0
votes
1answer
28 views

How to use testRestTemplate for a post request with no request body

I have a rest endpoint as below: @PostMapping(value = "/customers/{customerId}") public SomeResponse manageCustomers(@PathVariable String customerId){ ... } This endpoint picks customer data from ...
0
votes
0answers
15 views

How to run parallel integration tests in gradle in separate process

I have to run Spring boot integration tests in parallel to reduce the time as they took quite a few minutes right now. When I use maxParallelForks they run in parallel but the issue is since they are ...
-1
votes
1answer
26 views

RestTemplate Test w specific parameters for REST Controller

I am writing Integration Tests for controllers using RestTemplate, so far I have been able to call most , however haven't been able to tackle this particular parameter combination. I know how to deal ...
0
votes
0answers
15 views

Intesgration testing for postgres node.js app

I a have a node.js app that is connected to a postgres database using the npm package node-postgres. I found a second package called pg-testdb that allows you to write a script to create test tables ...
0
votes
0answers
15 views

TestNG nested tests or test steps

I'm wondering is it possible to make TestNG show in it's report something like nested tests or test steps. The thing is that I have pretty big integration test cases and it would be nice if I could ...
0
votes
0answers
17 views

Android Espresso testing SwipeRefreshLayout OnRefresh not been triggered on swipeDown

I'm trying to write simple test for pull to refresh as a part of integration testing. I'm using the newest androidX testing components and Robolectric. I'm testing isolated fragment in which one I'm ...
1
vote
2answers
55 views

Cypress testing pseudo CSS class :before

Is there a way in which I can test the content of the pseudo CSS class for :before on my element with Cypress? I have seen links documenting: Accessing nth-child pseudo element Accessing the actual ...
1
vote
1answer
21 views

Integration tests CRUD Ember.js

I need to do integration tests for my Ember app, for example in the user template : <div class="container"> <h1>{{model.firstName}} {{model.lastName}}</h1> <p>Age: {{model....
0
votes
1answer
24 views

meta replacing same method in two different tests not working?

Test controller is as follows def justTest(){ def res = paymentService.justTest() [status: res.status] } Test service method is as follows def justTest(){ } Now the two test cases are ...
0
votes
0answers
10 views

How to reuse a scenario in citrus framework?

I set this testing scenario with citrus framework. Now I'm trying to reuse it in other scenarios. I'm creating a behavior for each step. My behaviors are mainly http requests public class ...
0
votes
0answers
24 views

how to skip integration Test in Jhipster?

i want to just run the unit test for code coverage and skip the integration test tried commands like mvn clean install -Dmaven.test.failure.ignore=true added the following plugins https://maven....
0
votes
1answer
17 views

No call to expected at this point. Still 1 call(s) to expected error

In the integration test, i am using groovy mock feature to mock a service method like shown below: def mock = new groovy.mock.interceptor.MockFor(PaymentService) mock.demand.processPayment(){ a, b, ...
1
vote
2answers
23 views

Java commons-httpclient: Testing timeout values

Abstract: how do devs Integration TEST timeouts for http requests? Backstory: My team is having issues related to unusually long lasting HTTP web requests. We use the commons-httpclient version 3 by ...
1
vote
0answers
26 views

How to use these @DataMongoTest and @SpringBootTest together in integration test

I am trying to write integration test case for one of my rest application which uses mongodb internally to persist the data @DataMongoTest @SpringBootTest(webEnvironment = WebEnvironment....
1
vote
1answer
76 views

Integration test in python

I have a python project that I want to test. I already have unit test with unittest but I need to do integration tests. For that, I have two applications: the real one that I have to test, and a "...
0
votes
0answers
27 views

RBAC testing - What does it actually do?

I am a developer, I understand what RBAC means, to give a simple example It is USER -> ROLES -> RIGHTS (i.e) A user can have any number of roles (internal permission for each modules) then based on ...
-1
votes
0answers
31 views

Should I write deep tests in component integration tests

Given a scenario where you have a smart component that wraps 2 dumb components, and both dumb components have been thoroughly tested in separate unit tests, does it make sense to make deep tests when ...
-1
votes
1answer
66 views

What is the way to write tests against a 3rd party software like redis

I'm not sure if this is the right forum to ask this question if not kindly point me in the right direction. I wanted to create a library/client for a 3rd party tool, which is similar to redis. And ...
0
votes
0answers
183 views

Integration Tests for RESTEasy Endpoint

I want to perform integration tests on my REST endpoint but am running into issues. Below is my endpoint. NOTE: I cannot change this part of the code. @Path("/people") public class PersonResource {...
0
votes
0answers
28 views

Spring JDBC junit for RowMapper which is being loaded by DatasourceConfiguration

I am newbie to Junit. I have a implementation for Spring JDBC where i am loading DataSource using the Configuration. Using the Datasource and Environmet i am loading data from database and using ...