473,471 Members | 4,629 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Discussion: Test containers or test doubles (comparison inside)

3 New Member
When testing flows that start with a message from a queue, or ends by publishing a message to the queue, would you prefer testing against a real server (e.g. using test containers) or stub the MQ client (e.g. using mockito)?

I started to craft a comparison table between the two, could be nice to discusss the trade-off
Feb 14 '21 #1
1 2155
dreamtext
24 Recognized Expert New Member
Depends on the use case right?

Running your test against real servers make more sense if the code is being shipped in a live service and there are enough resources to run the containers for running tests.

It's still an automated test that runs against a more production like environment
https://www.testcontainers.org

Mocktio is great for testing code when shipping code that you might be selling or open sourcing where you don't know how the end user will use the code and you just want to make sure everything works on each release.
Feb 14 '21 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: MLH | last post by:
DELETE test.name FROM test WHERE (((test.name) Like "o*")); I use MS Access. The above SQL is OK with Access, but not with MySQL. Other than the semicolon at the end of the phrase, what's wrong...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
20
by: Alexander Muylaert | last post by:
Hi I hate this syntax MyEnum aEnum; ... if ((aEnum == MyEnum.Green) || (aEnum == MyEnum.Red) || (aEnum == MyEnum.Yellow)) ... In delphi we have something like
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
1
by: Graham Smith | last post by:
Hi, does anybody know a smart test software which can validate input and output from a software. The input needs to be created programmatically The output needs to read programmatically as...
1
by: Christopher Corbell | last post by:
This question pertains to PyUnit, esp. unittest.TestCase subclasses. Does anyone know of a way from within the TestCase tearDown() method to determine whether the current test succeeded or not? ...
27
by: brad | last post by:
Does anyone else feel that unittesting is too much work? Not in general, just the official unittest module for small to medium sized projects? It seems easier to write some quick methods that are...
0
by: =?Utf-8?B?TU9QU0M=?= | last post by:
Hi, i'm having a problem and hoping someone can give me some insight. I have Server Enterprise 2008 installed, set to a file server role with FSRM installed. I'm trying to setup where it will...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.