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
4
votes
2 answers

How do I control spring injections that vary between the test environment and the production environment?

I'm setting up a CI situation in which I will deploy my web app to a test environment. In this test environment, I want the business objects used by the app to be mocks of the real ones; the mocks will return static test data. I'm using this to…
chad
  • 7,369
  • 6
  • 37
  • 56
4
votes
1 answer

Functional/integration testing a NodeJS ReST API implementation

I've built a NodeJS application using mongoose and express. This application exposes resources in a ReSTful manner, and I'm trying to build a suite of functional/integraiton tests. This suite, when executed, should fire up my application in an…
Tharsan
  • 955
  • 1
  • 6
  • 19
4
votes
2 answers

Deployment Workflow

I'm currently managing the development of a live web application. There are two developers. We're looking to define a workflow that specifies how builds and deployments should happen. We're currently using codebaseHQ for source control. This is…
RobVious
  • 12,685
  • 25
  • 99
  • 181
4
votes
2 answers

In rspec/capybara integration tests, how can N (sequential) steps be implemented as N 'it...do' examples?

For a messaging app we have some fairly long integration tests. Right now, to run through a given scenario something like 20 or 30 steps have to be done in a certain sequence because Step N replies on data created during step N-1. So they are…
jpw
  • 18,697
  • 25
  • 111
  • 187
4
votes
3 answers

How do I skip a section of code when unittesting in java

I am working on a Java web app with unit/integration tests. App gets deployed to Jetty and uses H2 db while running the integration test phase of maven. I've one oracle function which is called from dao layer which can not be migrated to H2 db,…
Pankaj
  • 3,512
  • 16
  • 49
  • 83
4
votes
1 answer

How to write unit/integration tests in python with rabbitmq?

I have a python project written using rabbitmq, and I'm wondering how I should write unit tests for it/what are best practices. Since the code requires a rabbitmq server to be running in the background these are the three options I've come up…
Jon Chu
  • 1,877
  • 2
  • 20
  • 19
4
votes
1 answer

Can I use an IoC container in unit/integration tests?

I've got an IoC container doing some complicated object construction when resolving some interfaces. I want to use implementations of these interfaces in my unit/integration tests. Is there anything wrong with resolving these interfaces in the tests…
Ian Warburton
  • 15,170
  • 23
  • 107
  • 189
4
votes
1 answer

technique to detect use of features that are "dangerous" to use across different Java implementation or OS?

I am responsible for a number of java application servers, which host apps from different developers from different teams. A common problem is that some app is sent that does not work as expected, and it turns out that the app was developed on some…
Tom
  • 3,324
  • 1
  • 31
  • 42
4
votes
2 answers

How can I get nose to find class attributes defined on a base test class?

I'm getting some integration tests running against the database, and I'd like to have a structure that looks something like this: class OracleMixin(object): oracle = True # ... set up the oracle connection class SqlServerMixin(object): …
Jason Baker
  • 192,085
  • 135
  • 376
  • 510
4
votes
2 answers

android-maven-plugin, instrumentation testing and testSize

I'm using maven for building, running and instrumentation testing my Android applications. Android testing framework has three different test scopes @SmallTest, @MediumTest and @LargeTest and android-maven-plugin has ability to select test scope via…
4
votes
1 answer

How to write functional/integration tests in Selenium Python

I'm new to testing and I would like to 1) test the login 2) create a folder 3) add content (a page) into the folder I have each of the tests written and they work but obviously I would like to build ontop of each other, eg, in order to do 3 I need…
S.Muse
  • 115
  • 1
  • 7
4
votes
1 answer

Use a developer HSQLDB in a Spring REST integration test

I would like to do an integration test of a Spring MVC Rest service. The purpose of this test is mainly to test the REST part, not the whole application. This means I would like to use HSQLDB instead of our PostgreSQL's main database. At the same…
Xavier M.
  • 136
  • 1
  • 7
4
votes
1 answer

Why doesn't my current_user helper method work during tests?

I have a Rails 3.2.3 application and I am using MiniTest and Capybara to run my integration tests. I rolled my own authentication and created a current_user helper_method in my application_controller.rb. My application layout file only displays…
RubyRedGrapefruit
  • 12,066
  • 16
  • 92
  • 193
4
votes
4 answers

Testing: How to test that view contains desired data

Say a Chef can make Recipes, and Sous-Chefs can create Recipes that must be approved by a Head Chef. You want to test that, when a Head Chef views her homepage, she sees Recipes that she herself created. You also want to test that she sees there are…
chadoh
  • 4,343
  • 6
  • 39
  • 64
4
votes
1 answer

Grails Quartz Job Integration test - Not autowired Job

I'm writing the Integration test for a Quartz Job in a grails application. I've the Job in grails-app/jobs folder, and if I start the application it works. The problem is that I want to get it in an integration test, but the autowire won't work. The…
rascio
  • 8,968
  • 19
  • 68
  • 108