Skip to content

ottorinobruni/SnapshooterDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnapshooterDemo

This repository contains the source code for the SnapshooterDemo project. The goal of this project is to demonstrate the practical application and benefits of using Snapshooter for snapshot testing in .NET projects. The solution showcases how Snapshooter can be integrated with Xunit to simplify the testing of complex data structures in .NET applications, highlighting the efficiency gains in the testing process.

Contents

Project Description

SnapshooterDemo demonstrates the integration of Snapshooter with .NET testing frameworks to facilitate snapshot testing. The repository includes projects like SnapshooterDemo.Models and SnapshooterDemo.Tests, illustrating the use of Snapshooter to significantly reduce the complexity and increase the reliability of unit tests.

How to Use

  • SnapshooterDemo.Models: Contains the core logic and models for the application.
  • SnapshooterDemo.Tests: Demonstrates the use of Snapshooter with Xunit for effective snapshot testing.
  • SharedBlazorApp.sln: Main solution file that encompasses the model and test projects.

Project Structure

The solution is organized into two main projects:

  • SnapshooterDemo.Models: Hosts the business logic and data models.
  • SnapshooterDemo.Tests: Contains all the test cases, showcasing traditional tests and snapshot tests using Snapshooter.

Getting Started

To run the project locally on your machine, follow these steps:

  1. Clone the repository: git clone https://github.com/yourusername/SnapshooterDemo.git
  2. Navigate to the project directory: cd SnapshooterDemo
  3. Restore the NuGet packages: dotnet restore
  4. Run the tests: dotnet test

Contributions

Contributions are welcome! If you'd like to improve this project, open a pull request or report an issue.

License

This project is licensed under the MIT License.

About

.NET Demo Application with Snapshooter Testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages