Questions tagged [integration-testing]

49 questions
27
votes
6 answers

Unit and Integration testing: How can it become a reflex

All the programmers in my team are familiar with unit testing and integration testing. We have all worked with it. We have all written tests with it. Some of us even have felt an improved sense of trust in his/her own code. However, for some…
10
votes
3 answers

Is creating a completely duplicate system for quality assurance (QA) of another a bad practice?

At work we have a quite complicated system. Let's call this system, System_A. Our QA team has created another system, call this system, System_B, to test System_A. The way System_B is used is as follows. We generate inputs (using System_B itself),…
9
votes
6 answers

Are HSQLDB unit tests an anti pattern?

HSQLDB is great. It (also) has an embedded mode (no dedicated server needed), which allows for quick prototyping of stuff like Proof of Concepts, and it can also be great in production-ready applications, as a quick and simple storage of various…
Shivan Dragon
  • 4,583
  • 5
  • 24
  • 31
8
votes
1 answer

Integration vs Functional Testing

Alright....so this is driving me nuts as I'm trying to encourage the team to write more tests yet here I am unable to determine whether the following example is considered an integration or a functional test case. Consider the following: We have…
8
votes
2 answers

Integration tests, but how much?

A recent debate within my team made me wonder. The basic topic is that how much and what shall we cover with functional/integration tests (sure, they are not the same but the example is dummy where it doesn't matter). Let's say you have a…
6
votes
2 answers

Whether and how to test façades

In my application I have quite a few service classes that act as a façade and delegate most calls to one or more underlying manager classes. I've read very different opinions on how to test such façades. Some people say it's not necessary to test…
6
votes
1 answer

Best strategy for creating/updating CI build database

I was wondering what the best practice is regarding databases for integration tests on the build server. If there is a best practice. Currently, our build will create a new database from scratch for every build. Integration tests are then performed…
5
votes
4 answers

Should test code be treated as normal code?

I remember reading on someone else's post that test code should not be treated as normal code but as small whole programs and that is an idea I really like and would like to refer to when discussing with other engineer colleagues, but is not…
namelivia
  • 159
  • 6
5
votes
3 answers

Is it mandatory to run integration tests when deploying feature branches to QA machines

In our organaziton to make the testing process a QA can start the QA process by deploying a feature branch to a QA machine. My question is that while doing so should the build process include running the integration/smoke tests as well or can we…
5
votes
2 answers

Is there a benefit to unit testing code whose sole purpose is to generate non-human-readable code in another language?

A significant portion of the application I work on every day consists of Javascript that outputs a lot of (what might as well be) Excel spreadsheet formulas. Yes, Excel is barely a Turing-complete language, but the formulas are more than complex…
Ixrec
  • 27,621
  • 15
  • 80
  • 87
4
votes
1 answer

Clean Architecture use case testing

Use case interactors in the Clean Architecture consists of the application specific business rules. Interactors uses the Data Access Interface to fetch the required data from the data access layer. Basically I see two approaches to test these…
user334208
4
votes
2 answers

Where do I define WCF client endpoints in a test project?

I have a class library-- call it Services.dll-- which is a wrapper for some third party functionality. The third party gave us a bunch of DLLs and those "inner" DLLs call a WCF service. Normally, when Services.dll is running, it lives within the…
John Wu
  • 26,032
  • 10
  • 63
  • 84
3
votes
2 answers

the actual notion of an integration and end to end testing

I want to know how rigid do we have to stick to the notion of end to end testing, please consider the following explanation: Basically, when we talk about end to end test we send a request and expect a response, in an end to end test we verify this…
mleko
  • 47
  • 5
3
votes
2 answers

Should on each test create and nuke a testing database?

In my case I inherited a poorly engineered code, on that piece of code I have been tasked to increase the code coverage in integration tests. But instead of the usual pattern: Create/Populate a test database with specific test data run the…
Dimitrios Desyllas
  • 451
  • 2
  • 4
  • 16
3
votes
4 answers

Should outgoing messages from object under test be tested?

I was watching a recording of a conference by Sandi Metz on testing. One of the things that I struggled with was that she said not to test outputs of the object under test (her example was query messages since she uses rails.) Here is a gist…
1
2 3 4