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.

Integration testing is 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.

In an integration test, all input modules are modules that have already been unit tested. These modules are grouped in larger aggregates and integration tests are applied to those aggregates. After a successful integration test, the integrated system is ready for system testing.

6972 questions
3
votes
1 answer

How to avoid Serialization of Closure with process isolation on PHPUnit?

I am trying to write an integration test for an extension (app) for nextcloud. Nextcloud itself is based on Symfony. Long story short, I ended so far with a test class, that throws the following error message: PHPUnit 8.5.15 by Sebastian Bergmann…
Christian Wolf
  • 1,187
  • 1
  • 12
  • 33
3
votes
1 answer

Add scopes to AuthenticationTicket?

Is there a way to add scopes to an AuthenticationTicket, i am working integration tests and the controller endpoint I am testing requires a scope to be present. [Authorize] [RequiredScope(RequiredScopesConfigurationKey =…
Adam Wilson
  • 281
  • 2
  • 15
3
votes
1 answer

authenticating mock user when testing rails 3.1

I am trying to test my rails 3.1 app (I'm learning testing as I go) and I and stuck with how I authenticate a user since normally it sets a session but the tests aren't using the browser so session is an undefined method. I am using the new rails…
3
votes
1 answer

Selenium HTML attribute name to assist identifying content

I need to verify using Selenium (or similar framework) that certain HTML content/items are on the page using known unique identifiers. I have control over the generation of the HTML, so I will mark the HTML tags with an attribute, but sometimes the…
Bohemian
  • 412,405
  • 93
  • 575
  • 722
3
votes
1 answer

Why is spring Boot 2.4.5 with Junit5 and mocked beans is throwing StackOverflowErrors?

Context Upgraded gradle from 5.5.1 to 7.0.2 Tested - everything works Upgraded spring from 2.1.5 to 2.4.1 Migrated test annotations from junit 4 to junit 5 Result Unittests work Integration tests DO NOT work Issue Starting integration tests…
Matyas
  • 13,473
  • 3
  • 60
  • 73
3
votes
3 answers

Rails helpers not working in test environment

I've followed the tutorial available at http://railscasts.com/episodes/221-subdomains-in-rails-3. It allows you to pass a subdomain option to your routes by overriding the url_for method in a helper file. I've helper method looks like this: module…
biagidp
  • 2,175
  • 3
  • 18
  • 29
3
votes
2 answers

Calling functions and variables in same package but different files with build tags

I'm setting up some integration testing, which I'm doing in a separate test package to my src code. This is done to prevent circular dependencies. Unit tests are not stored here, they are stored alongside the files they are testing. My golang…
testing495
  • 212
  • 2
  • 12
3
votes
0 answers

I can't target the Google Login for integration testing

Currently I'm trying to build out the integration testing for an app that someone else built. I'm stuck with the Google sign in. Specifically, the integration testing can't find the Google pop-up page. Is there any way to use integration testing…
3
votes
1 answer

Twill alternative for integration testing

I am using to twill to do integration testing for an AppEngine (using tipfy micro framework) application but unfortunately twill is not maintained and I cannot test PUT and DELETE requests. Is there any similar solution? I am thinking of using…
PanosJee
  • 3,866
  • 6
  • 36
  • 49
3
votes
4 answers

Using cypress, measure page load time

Im using cypress to test a website, I need a way to measure the amount of time that it takes to load or execute certain cypress commands. For example: //var startTime = SomeStopwatchFunction(); cy.visit("/a website"); cy.get("Some…
cameroony
  • 67
  • 1
  • 10
3
votes
1 answer

Testing Library functions in a flutter package with Native Functions using Dart::ffi

I am writing a Dart library to access a C shared object using Flutter. So far, the example app I created is working (somewhat) as expected, but i want to include Unit testing too keep the library somewhat stable. Details: Shared Objects are in…
Ryan Deschamps
  • 351
  • 4
  • 16
3
votes
1 answer

How could we initialize Cypress intercepts, in beforeEach properly?

I am relatively new to Cypress and even though it looks straightforward, there some things that I still don't understand. The particular problem: const componentsRouteMatcher = { pathname: '/component-management/api/components', query: { …
Georgi
  • 189
  • 2
  • 12
3
votes
1 answer

How does one write function stubs for testing Rust modules?

In my past experience of testing C code, the function stub is pretty much mandatory. In my safety-critical line of work, I am usually required to test everything - even abstractive functions which simply call a build-specific implementation argument…
Walkingbeard
  • 590
  • 5
  • 15
3
votes
1 answer

can we have bash tests in maven build process for java?

If my main logic is written using java (a small daemon server), but my test cases is a bash script. How can I include the test into my maven pom.xml? so that I can run my test using mvn command?
chen
  • 4,302
  • 6
  • 41
  • 70
3
votes
1 answer

Is there a way to trigger Material-UI Modal close manually

I use the Popover component, it is like Modal. I have a test like this: test('should close popover when clicked two times', () => { userEvent.click(targetElem); let popover = screen.getByTestId('popover'); …