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
0 answers

How can I use the Angular AppInjector solution in a Karma test?

Using the top-rated answer for this question: Storing injector instance for use in components I have a class with a constructor, which also has service dependencies that are injected as follows: protected constructor(private settings:…
3
votes
0 answers

Is there a recommended way to mock AWS Batch for integration tests in Metaflow?

I would like to implement integration tests featuring Metaflow flows; i.e. running a flow from start to finish within a Docker container; and ideally this wouldn't require substantial rewriting of the flows which contain @batch decorators on…
kd88
  • 1,054
  • 10
  • 21
3
votes
0 answers

How to write integration tests to check if the cron job runs at the right time and does the right job?

I am building cron-jobs using Quartz Framework in my application. I am looking for any automation framework for the integration tests to test cron jobs. What I want to achieve is to write a test, giving cron expression as an input and expect my test…
3
votes
1 answer

How to upload a file to an endpoint from an integration test

When a file is uploaded from the client, it can be found in this.Request.Files, which is of type HttpFileCollectionBase. HttpFileCollectionBase contains HttpPostedFileBase entries. The properties on these objects are read-only, so I was hoping I…
Samo
  • 8,202
  • 13
  • 58
  • 95
3
votes
1 answer

Does Python's unittest have a global setUp for an entire TestSuite?

I'm a bit new to Python's unittest library and I'm currently looking at setting up my Flask server before running any of my integration tests. I know that the unittest.TestCase class allows you to use setUp() before every test cases in the class. …
3
votes
1 answer

How to add a maven module with @SpringBootApplication to another maven module as a dependency in test scope

I have a multi-module project where only the root module has a class with @SpringBootApplication. Other modules are added to the POM file of root module as dependencies. To test other modules I created a module (let's call it test-module) with…
asdfasdf
  • 45
  • 3
3
votes
1 answer

Sample integration test with Flutter new integration_test?

Sample integration test with Flutter new integration_test ?
Paras Arora
  • 605
  • 6
  • 12
3
votes
1 answer

Is this Fluent NHibernate mapping test a false positive?

I changed my mapping test to use the overload .VerifyTheMappings(TEntity first), and suddenly my test just passes. I haven't used that overload before, and since I'm not really sure how it works, I'm worried I'm getting a false positive. I'm…
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
3
votes
2 answers

should E2E be run in production

Apologies if this is open ended. Currently my team and I are working on our End to end (E2E) testing strategy and we seem to be unsure whether we should be executing our E2E tests against our staging site or on our production site. We have gathered…
alaboudi
  • 3,187
  • 4
  • 29
  • 47
3
votes
1 answer

Enabling @Converter in @DataJpaTest

I am trying to save a LocalDate via JPA. Following this guide: https://thorben-janssen.com/persist-localdate-localdatetime-jpa/ I implemented a converter. Now this works just fine. However, I have a few RepositoryTests that are annotated with…
BFR
  • 105
  • 1
  • 1
  • 9
3
votes
2 answers

asp-net core integration tests rollback transaction after each tests

I've used this documentation for my integration tests: asp.net core integration tests and this is my simplified integration test: public class ApplicationControllerTests : IClassFixture> { private readonly…
pfloyd
  • 266
  • 2
  • 10
3
votes
0 answers

Error: Configuration property "db" is not defined' Node.Js

I'm getting an error while running the below code. Package.json { "name": "movies-api-model", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "jest --watchAll --verbose" }, "keywords": [], …
Bumblebee
  • 179
  • 1
  • 16
3
votes
2 answers

Overriding config file with env variable in Cypress

I am using this link as a reference to pass configuration to my cypress tests : https://docs.cypress.io/api/plugins/configuration-api.html#Switch-between-multiple-configuration-files My sample config file looks like this: { "env": { …
Vall
  • 3,926
  • 3
  • 14
  • 14
3
votes
3 answers

How do I run integration tests for a vscode extension that depends on other extensions

The vscode API documentation includes a page on how to test extensions. This works well when you have a single extension with no dependencies. However, in our case, we extensionDependencies since our extension depends on…
3
votes
2 answers

With Rust how do you perform platform testing before publishing to crate.io?

I'm working on a framework which I'm testing on my Mac. Eventually, I'll want to publish to crate.io. I'd like for that to not blow up as a result of poor platform testing. Is there a means to test on all, or at least most, of the current deployment…
Bruce
  • 503
  • 3
  • 13