Logo

A unit test generation extension for Visual Studio that aims to always produce code that compiles - covering the basic cases automatically and preparing as much as it can for the complex cases.

Get the extension from the Visual Studio Marketplace:

Alternatively see the releases on GitHub:

Latest release Last commit Build status Open issue count

Introduction 👀

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.

Documentation Sections 📖

Supported Environments 🌳

Visual Studio Versions 🆚

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.

Supported Frameworks 🖼

Test Frameworks

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.

Mocking Frameworks

Framework Auto-Detection 🔍

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.

Contributing ✋

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.

Support 🤝

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.