Swiss Life | OSS

Swiss Life | OSS

  • Blog
  • GitHub

›All blog posts

All blog posts

  • Squadron - First public release
  • Snapshooter - Mismatch Compare in Visual Studio
  • First SwissLife OSS - Snapshooter

Squadron - First public release

November 29, 2019

Philippe Birbaum

Philippe Birbaum

Last month we have released our first Open Source version of Squadron. 🎉 Squadron is a testing framework which makes ist extremely easy to write integration & system tests against resources that run in a container or in the cloud.

The tool has been internally developed at Swiss Life and was heavily used to write tests against SQL Server and MongoDB for more than one year now.

With the new Open Source version 0.5 we have now added many more providers and plan do add even more.

Supported resources

ProviderNuget Package
MongoSquadron.MongoDb
Mongo Replica SetSquadron.MongoDb
SQL ServerSquadron.SqlServer
Elastic SearchSquadron.ElasticSearch
PostgreSQLSquadron.PostgreSql
RedisSquadron.Redis
RabbitMQSquadron.RabbitMQ
Azure StorageSquadron.AzureStorage
Azure ServiceBusSquadron.AzureCloudServiceBus
GenericSquadron.Core
ComposeSquadron.Compose

Azure Cloud resources

Whenever possible we recommend to use a container resource to use with Squadron, but there are some cases when there is no container replacement for a cloud service. An an example is Azure Storage where the basic features are available using the Azurite emulator, but some more advanced features like leases are only available where using the "Real" cloud service.

For this we have build the functionality the manage Azure services using the management API's. Squadron will automatically provision new resources and delete them when the test has completed. Another way is to use an existing azure resource and provision some entities for the test and remove them after. This can save some time as creating resource is usually a expensive operation. The first resource we have implemented for Azure is Azure Service Bus.

Read More

Snapshooter - Mismatch Compare in Visual Studio

March 29, 2019

Normen Scheiber

Normen Scheiber

In some cases, snapshots can get really big, for example in integration or system tests. Now, if you have a snapshot mismatch with several unequal values, it can become quiet unhandy to find them, especially if you have only a small error message.

This is one of the reasons, why we extended the mismatch behaviour... Now in case of a snapshot mismatch, Snapshooter not only shows you an error message, it also stores the mismatching snapshot in the __snapshot__\__mismatch__ folder. (see Snapshot Mismatch Handling)
Therefore the original snapshot can be compared with the mismatching snapshot by a file compare tool, and you can see the differences much faster.

An even faster way is in our opinion to use a Visual Studio (Code) extension for file comparison....

Read More

First SwissLife OSS - Snapshooter

March 28, 2019

Normen Scheiber

Normen Scheiber

SwissLife released its first official Open Source Software Snapshooter, which is a flexible snapshot test utility for .Net, to simplify the result validation within tests.

Snapshooter is a tool for developers and testers, who want to validate their test result in a simplified way. Instead of writing hundreds of assert statements or dividing tests into many sub-tests, we are able to check the result now with one single assert.

Read More

Projects

SnapshooterSquadronMagnet

Community

Contributor License AgreementsCode of ConductTwitterSlack

More

BlogGitHub
Swiss Life OSSSwiss Life | OSS
Copyright © 2019 Swiss Life Developer