Skip to content

Get started with Coyote with these simple introductory sample projects.

License

Notifications You must be signed in to change notification settings

fabiomadge/coyote-samples

 
 

Repository files navigation

Coyote Samples

NuGet Windows CI Linux CI macOS CI Join the chat at https://gitter.im/Microsoft/coyote

This repository contains two sets of Coyote samples.

The first set of samples shows how you can use Coyote to systematically test unmodified C# task-based applications and services:

  • AccountManager: demonstrates how to write a simple task-based C# application to create, get and delete account records in a backend NoSQL database and then systematically test this application using Coyote to find a race condition.
  • ImageGalleryAspNet: demonstrates how to use Coyote to test an ASP.NET Core service.
  • Coffee Machine Failover: demonstrates how to systematically test the failover logic in your task-based applications.
  • BoundedBuffer: demonstrates how to use coyote rewrite to find deadlocks in unmodified C# code.

The second set of samples shows how you can use the Coyote actor programming model to build reliable applications and services:

  • HelloWorldActors: demonstrates how to write a simple Coyote application using actors, and then run and systematically test it.
  • CloudMessaging: demonstrates how to write a Coyote application that contains components that communicate with each other using the Azure Service Bus cloud messaging queue.
  • Coffee Machine Failover: demonstrates how to systematically test the failover logic in your Coyote actor applications.
  • Robot Navigator Failover: demonstrates how to systematically test the failover logic in your Coyote actors applications.
  • Timers in Actors: demonstrates how to use the timer API of the Coyote actor programming model.

Get started

To build and run the samples, you will need to:

Once you are ready, clone this repository and build the samples by running the following script in powershell:

./Scripts/build.ps1

Then, follow the instructions in each sample.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

About

Get started with Coyote with these simple introductory sample projects.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 96.8%
  • HTML 1.7%
  • PowerShell 1.2%
  • Other 0.3%