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
1 answer

Designing a CRUD test suite

I'm writing a suite of black-box automated tests for our application. I keep bumping into the same design problem, so I was wondering what people here think about it. Basically, it's a simple CRUD system. For argument's sake, let's see you're…
MathematicalOrchid
  • 61,854
  • 19
  • 123
  • 220
4
votes
0 answers

MemoryCache: Why is this integration test failing? UpdateCallBack looks like it's broken

In a sane world, I would have expected the UpdateCallBack property to increment my collection of arguments. But it doesn't: in the final line of this test, the updateArguments collection is expected to be 3 (twice for each Set call and once for the…
Rob Lyndon
  • 12,089
  • 5
  • 49
  • 74
4
votes
5 answers

Starting external process during integration testing in maven

I want completely automated integration testing for a Maven project. The integration tests require that an external (platform-dependent) program is started before running. Ideally, the external program would be killed after the unit tests are…
flicken
  • 15,443
  • 4
  • 29
  • 29
4
votes
2 answers

Unit Testing CodeIgniter with Simpletest - very few tests

On our development team, we decided to give Unit Testing a try. We use Simpletest. However, it's been a tough road. After a week, I only have created 1 unit test that tests a certain helper file. That's it. The rest (controllers, models, views,…
putolaruan
  • 2,084
  • 2
  • 21
  • 32
4
votes
1 answer

Is there a way to add spec/features to rails scaffold generator

Using rspec, I would like the app to stop generating request specs and start generating feature specs instead. spec/features are used by capybara. The request spec generator could be omitted with config.generators do |g| g.test_framework :rspec,…
fflyer05
  • 873
  • 11
  • 18
4
votes
3 answers

Testing Custom Grails Taglib with Service and Plugin Dependencies

I have a custom taglib that needs to make calls to a service method, which in turn uses the Wslite plugin to send and receive SOAP messages. The taglib looks something like this. class myTagLib { def myService def thisTag = { def…
jonnybot
  • 2,435
  • 1
  • 32
  • 56
4
votes
0 answers

EF database / model first unit (integration) tests

I want each of my unit (integration) test methods to use a clean and consistent database and specific test data for each test. Could you please provide me some code samples/snippets and tell me what are best practices for the following questions…
4
votes
2 answers

In Grails, how do I test @Secured annotations in automated tests?

I have a controller method that I'm annotating like so: @Secured(['ROLE_ADMIN']) def save() { ... // code ommitted } I'm trying to write a unit test to verify that only the admin user can hit the URL: def "Only the admin user should be able to…
Daniel T.
  • 37,212
  • 36
  • 139
  • 206
4
votes
4 answers

testing Intent in android

I have an android app. When the user clicks button A and intent is fired like this android-presudocode :) //inside FirstActivity @Override public void onClick(View view) { startActivity(new Intent(this, AnotherActivity.class)); } So if I'm not…
fernandohur
  • 7,014
  • 11
  • 48
  • 86
4
votes
1 answer

LLVM Test Infrastructure Fails

I have successfully followed all of the steps for installing LLVM's test infrastrucure (LNT) located at this link. The final step is to execute the following command: lnt runtest nt \ --sandbox SANDBOX \ --cc ~/llvm.obj/Release/bin/clang \ …
RouteMapper
  • 2,484
  • 1
  • 26
  • 45
4
votes
1 answer

RSpec undefined method 'should'

I am getting an undefined method for 'should' in my controller tests and cannot figure out why. I spent some time on google and stack overflow, but am stuck. Any help? Spec Helper: require 'simplecov' SimpleCov.start 'rails' # This file is copied…
dewitt
  • 58
  • 1
  • 4
4
votes
0 answers

How do I deploy different files for running Integration Tests on different architectures?

We have multiple test projects that access databases directly. Those tests basically validate our sql queries written in C# code. Unfortunately, they are not separated at the moment and are in the same assemblies that also house true, non-dependent…
4
votes
4 answers

How to automate by Firefox browser for functionality testing?

I have to automate the Firefox application to do Functional testing, kindly help me which testing tool I can use. thanks
4
votes
1 answer

Trying to run retries on before() Method before failing a test

I have an unstable ENV which im running JUnit tests on. Many tests fails on before() method because connection/network/non test related issues and I want to add a feature that retries a before method - before failing the test completely. I've added…
Nimrod007
  • 9,825
  • 8
  • 48
  • 71
4
votes
0 answers

Testing Passivation with Java EE 6 (JBoss 7.x)

I have a few SessionScoped beans that I would like to test and it occurred to me that I am not testing what happens when they get passivated. I would very much like to resolve this gap within the integration testing. However, there doesn't seem to…
drone.ah
  • 1,135
  • 14
  • 28