Skip to main content

Questions tagged [integration-testing]

-1 votes
2 answers
123 views

Approach for implementing access permission tests for a large number of actions and multiple affiliations

I'm obviously having trouble creating a question that fits StackExchange guidelines in regard of opinions vs metrics. Any help to improve this question is highly appreciated. I'm searching for a ...
DarkTrick's user avatar
  • 276
-3 votes
2 answers
362 views

Why are logs not used for testing? [closed]

In tests, state verification or collaboration verification is usually undertaken. One of the drawbacks of this approach is the coupling of tests to the design of constructs. Consequently, when ...
Kaveh Shahbazian's user avatar
1 vote
2 answers
216 views

Is it possible to prove mathematically that unit testing reduces test effort as compared to integration testing? [closed]

I took out the request for a paper, thank you for spending so much time on this. hopefully this edit is better. I use the word "complexity" meaning "cyclomatic complexity" so if ...
Mister Jeps's user avatar
0 votes
1 answer
422 views

Best practice when it comes to using XUnit and prepping/ rolling back test accounts before and after running tests

I am writing integration tests via unit tests by using Xunit. (the specific testing framework is not set in stone, Xunit is being used simply because it has been used before in this project team) The ...
Robin's user avatar
  • 103
3 votes
2 answers
368 views

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 ...
mleko's user avatar
  • 47
0 votes
4 answers
774 views

Should i write tests if it takes more time than testing manually?

Im making a website and trying to learn Test Driven Development (TDD) I'm doing one of CS50 projects, were we need to make a website to trade stocks. I decided to use this oportunity to learn TDD. I ...
Portho Games BR's user avatar
1 vote
1 answer
1k views

Should integration tests cover calls from web app to API?

My solution consists of an API for data access and a web application that calls it. I have integration tests set up for the API. However, the actual Web application that calls the API is not a part of ...
Peter Dongan's user avatar
0 votes
1 answer
79 views

Additional modules in unit tests

We have capital-U Unit Tests that are supposed to be testing a particular slice of our code. This code has a dependency on an IConverter<TIn, TOut> (a wrapper similar to AutoMapper). The ...
Bryan B's user avatar
  • 2,804
3 votes
2 answers
1k views

Integration Testing Stripe Payments - stripe-mock or Stripe's test mode?

I'm building an automated test suite to integration/feature test my organization's Stripe implementation within a GitLab CI pipeline. We're running Laravel 8 and using phpunit for testing. Within this ...
Oliver Lewis's user avatar
1 vote
2 answers
682 views

When writing tests against the database, should the test to create a resource also retrieve the resource to check the values were correctly inserted?

Where I work, we have some integration tests which spin up a new SQL database instance in Docker, so that we can test the repository logic for write actions as well as read actions. We have a test for ...
mft25's user avatar
  • 191
0 votes
2 answers
475 views

What if integration testing makes more sense than unit testing for a certain method?

I don't want to spam you with a ton of code, but please have a quick look at this boiler-plate method: In this scenario let's say I have a ProcessingText.py file (class) that I finished its unit ...
Ahmed Alhallag's user avatar
1 vote
2 answers
258 views

Is there a pattern for unit/integration testing where tests that are higher level are intended to act as "gates" for other more specific tests?

The motivating concept here is that the fewer tests you have, the faster your test suite runs. This kinda feels like I'm basically describing smoke tests, but I think smoke tests and other tests are ...
Steven Lu's user avatar
  • 529
1 vote
5 answers
331 views

Hypothetically if every scenario were covered by an end-to-end tests, would unit tests still have any value?

Note: I'm asking about the strategy behind unit / integration / end-to-end tests, not about classifying tests as one or the other. More so in the past than present, it was expensive to write and run ...
Andrew Cheong's user avatar
4 votes
1 answer
5k views

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. ...
user avatar
-3 votes
1 answer
125 views

How to test dependencies between microservices?

We have two microservices A and B that are developed inhouse. A provides an API that B consumes. Let's assume that B has some specific integration tests that ensure that B is compatible with A. We ...
Frank's user avatar
  • 7

15 30 50 per page