https://github.com/farlee2121/testingpatterns
This project is to record and share patterns and libraries that make testing easier, descriptive and resilient
https://github.com/farlee2121/testingpatterns
architectural-patterns bogus c-sharp dependency-injection example-project ninject testing-practices
Last synced: about 1 month ago
JSON representation
This project is to record and share patterns and libraries that make testing easier, descriptive and resilient
- Host: GitHub
- URL: https://github.com/farlee2121/testingpatterns
- Owner: farlee2121
- Created: 2018-03-05T20:05:20.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2020-07-08T19:07:03.000Z (almost 5 years ago)
- Last Synced: 2025-03-29T07:21:42.086Z (about 2 months ago)
- Topics: architectural-patterns, bogus, c-sharp, dependency-injection, example-project, ninject, testing-practices
- Language: C#
- Homepage: https://20xtesting.slides.spencerfarley.com
- Size: 134 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TestingPatterns
This project is to record and share patterns and libraries that make testing
- easier
- more resilient
- more powerful
- more descriptiveAs a result, it also demonstrates many other patterns and libraries that enable good development practices.
Here is the presentation the triggered the project: https://20xtesting.slides.spencerfarley.com
Here is a presentation that describes the design philosphies: https://1drv.ms/b/s!AjVvNQ4uturOby6OwKMFpMUlMqA
This project is very much overkill for a Todo list. However, the overkill is to demonstrate the patterns in a way that can easily be transfered to a large project
Testing Patterns
- Dependency Injection
- DataPrep (centralized test data generators)
- ConfigWrappers //pending
- Inconclusive tests to mark untested code
- Test name modification for test runner (display extra info without manually adding it to each test name)
- Unit/Integration test reuseTesting Libraries
- JustMock (test dependency generator; https://www.telerik.com/products/mocking.aspx)
- alternatives: Moq, MSFakes, RhinoMocks
- DeepEqual (https://github.com/jamesfoster/DeepEqual)
- alternatives: NUnit.DeepObjectCompare (https://github.com/PolarbearDK/NUnit.DeepObjectCompare)
- Bogus (https://github.com/bchavez/Bogus)
- alternatives: AutoFixture
- .NET Transactions TransactionScope
- NUnit
- alternatives: MSTestExample Build Pipeline: https://spencerfarley.visualstudio.com/TestingPatterns/