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

Can't get an authorized user in integration test with Rails 3.1/Authlogic/ActiveRecord session store

I am trying to write a simple integration test on a Rails 3.1 application that uses Authlogic and ActiveRecord SessionStore, but I'm hitting the wall. First, I tried a classic approach: after ensuring that require "authlogic/test_case" line is…
3
votes
2 answers

Cobertura report has 100% coverage anywhere

I'm running my webApp using Jetty with my instrumented classes. After the shutdown of Jetty i'm taking the generated .set file and creating a cobertura report using the command line tool. I always get 100% coverage results on any class. It seems…
Ben Bracha
  • 1,377
  • 2
  • 15
  • 28
3
votes
4 answers

WatiN test data reset/clean up

I'm wondering how people are currently resetting their data / cleaning up test remnants for their WatiN/Wartir tests? For example, lets say there's a test to add a user into the system and the username has to be unique. Obviously the first run…
Mike737
  • 836
  • 5
  • 16
3
votes
3 answers

assert current_path

require 'test_helper' class MyTest < ActionController::IntegrationTest test "view posts from login page" do visit("/logins/new") find_field('Username').set('abode') find_field('Password').set('efghi') …
Ava
  • 5,783
  • 27
  • 58
  • 86
3
votes
3 answers

Suggestions for mocking an XMPP server

I have need to mock an XMPP server for testing purposes. My current intention is to run a local XMPP server and tie in my test code there, but I wonder if anyone is aware of an XMPP mocking library which already exists?
troutwine
  • 3,721
  • 3
  • 28
  • 62
3
votes
1 answer

Delta-Testing, test only changed parts of the "infected" code-base

I'd like to speed up our integrationtest-suite. It is long running. Too long. As everyone knows not every change has an impact on everything. So why not just test components which are influenced by the change? From infinitest I know, it is just…
3
votes
1 answer

Is it possible to test CORS when running an API in-memory using WebApplicationFactory?

We have a test suite that uses WebApplicationFactory to run our Web API in memory. I've added CORS to the API via the usual .NET middleware and have verified it's working as expected using a fetch command in a browser console. I'd now like to have a…
Tom Troughton
  • 3,941
  • 2
  • 37
  • 77
3
votes
2 answers

Cucumber - And I should see "first" before "last" - Rails 3.1

[Note: Using Rails 3.1.] I am trying to test that multiple models are being displayed in the proper order on my page, in my case, by desc date with the most recent on top. I know I can do the following to check if something exists on the page: And I…
ardavis
  • 9,842
  • 12
  • 58
  • 112
3
votes
2 answers

Testing Python Package Dependencies

Lets say I have a widely distributed/used python package called foo that's designed to work with the following dependencies: pandas>=1.3.0     pyarrow>=8.0 python>=3.8 How do I make sure that my foo package is actually compatible with all those…
3
votes
1 answer

How to setup dotnet Testcontainers with a SQL Server database for Integration Tests?

I have an API REST .NET 7 and I want to build integrations tests using a sql server container database. I've tried to follow the example in the documentation (https://dotnet.testcontainers.org/examples/aspnet/): const string weatherForecastStorage =…
3
votes
2 answers

In Cypress, should assertions be kept within test blocks themselves, or should they be in helper functions/automation steps

I recently started working on Cypress and I see a lot of assertions inside of helper functions/automation steps, this seems to me like it would be a bit of an anti-pattern since it would repeat these assertions in every and any other test that is…
3
votes
2 answers

jvm-test-suite common test sources for use in multiple test suites

Using the jvm-test-suite gradle plugin, I would like to be able to create a common test source set for use in other test suites. I envision the structure to look like the following where the sources and resources from common can be used in unit,…
3
votes
1 answer

Grails fixtures plugin and functional testing duplicates data

I have a problem while running fixtureLoader.load in BootStrap.groovy. import grails.plugin.fixtures.FixtureLoader class BootStrap { def fixtureLoader def init = { servletContext -> environments { test { …
3
votes
1 answer

How to register IOptions in integration test with Autofac?

I am writing an integration test using the same Autofac module registrations I use in the actual application. I wire it up using a base class like so: public abstract class ContainerFixture where TModule : Module, new() where…
numberjak
  • 1,065
  • 4
  • 13
  • 28
3
votes
1 answer

Xunit inject a collectionfixture that depends on another collectionfixture not working

The situation is that I have a test class that needs a CollectionFixture injected, this latter needs another one to be injected to it also. This is not working. This is my collection definition [CollectionDefinition(nameof(AssemblyFixtures…
AymenDaoudi
  • 7,811
  • 9
  • 52
  • 84