GithubHelp home page GithubHelp logo

csharp-test-templates's Introduction

C# Test Templates

This project aims to provide some test templates with examples in C# Programming Language. The idea is to present all type of possible tests (as a Performance, Stress, Load, Mutant, Acessibility, etc) in different contexts, services and apps.

However, inittially it's focused just in Unit, Integration and E2E Tests.

Documentation

Test Types

Requirements

  • .Net Core 3.1
  • Docker
  • Docker Compose
  • Xunit
  • Selenium
  • RestSharp
  • Moq

Unit Tests

The purpose of this type of test is to validate that each unit of the software code performs as expected. Usually these tests are created and performed during the development and the most of the bugs in software can be identified in this activity.

To create a better understanding about these tests, it was created an templates to use it with business rules or data access. The both approach are focused in minor part of the software, i.e method, and all integrated parts with other softwares or technologies are mocked using Moq.

To run these tests, it's possible use directly the 'Test Explorer' interface or by command line (dotnet test).

Integration Tests

Integration Tests we are focused in validate the service layer, which other services are called by our application. For it, it was create some tests to check some HTTP status code in GET and POST methods.

To run these tests, it's possible use directly the 'Test Explorer' interface or by command line (dotnet test).

E2E Tests

Lastly, we create a test to check a fake website using Selenium. This type of test needs to be considered in smaller scale than unit and integration tests.

To run these tests, it's necessairy to up docker compose.: docker-compose up it's possible use directly the 'Test Explorer' interface or by command line (dotnet test).

These test are performed in Selenium Grid and to view in real time the execution is necessairy use remote desktop softwares as "VCN Viewer".

it's possible use directly the 'Test Explorer' interface or by command line (dotnet test).

Contacts and Maintainers

If you have questions or suggestions, please contact the current maintainers.

[email protected]

csharp-test-templates's People

Contributors

andredieguesrodrigues avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.