title |
---|
Home |
The Unitverse Visual Studio extension generates tests for classes written in C#. The extension covers basic tests automatically (for example, checking for correct property initialization), and creates placeholder tests for methods. Unitverse aims to produce tests that compile, so that you can generate tests as you code, but still focus on what you are doing rather than divert your attention to fixing broken generated code. Unitverse also allows incremental test generation - as you add new members to your types you can add tests for those new members quickly through the editor. Also, if you refactor methods or constructor signatures, you can regenerate those tests quickly and easily.
- Getting started - covers basic usage and how to start generating tests.
- Features - covers the features offered by Unitverse along with in-depth descriptions.
- Configuration - covers the configuration options available, as well as details on how to configure the extension through source code.
- Contributing - covers useful information for anyone who wants to contribute to the project.
- Examples - contains a selection of sample scenarios showing the source code and the generated tests.
Due to the transition to 64-bit, Visual Studio 2022 introduces some architectural differences that necessitate a separate VSIX package. If you're working with Visual Studio 2019, you will need Unitverse for Visual Studio 2019 and if you're working with Visual Studio 2022, you will need Unitverse for Visual Studio 2022.
- MSTest
- NUnit
- xUnit
FluentAssertions can also be used for assertions, replacing the assertions built in to whichever test framework is being used.
Unitverse can also use AutoFixture for value generation if configured. There are examples of standard value generation and value generation with AutoFixture.
- NSubstitute
- Moq
- Moq with Moq.AutoMock
- FakeItEasy
- JustMock
If Unitverse finds a test project related to the source project, it will look at the project references to determine what test and mocking frameworks to use. It will automatically use FluentAssertions and AutoFixture if present. You can turn off framework auto-detection by going to Tools->Options->Unitverse.
Any contributions are welcome. Code. Feedback on what you like or what could be better. Please feel free to fork the repo and make changes, the license is MIT so you're pretty much free to do whatever you like. For more information, please see the contributing section. You can get started by visiting the Unitverse GitHub repo.
If you'd like to support the project but you don't want to contribute code - a really good way to help is spread the word. There isn't a donation or financial option because honestly I don't need donations. I am, however, rubbish at 'marketing'. So any help there would be greatly appreciated! Whether it's a blog post, a marketplace review or just telling some folks at the office - every little helps.