TerevintoSoftware.SolidTester.Tool 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package TerevintoSoftware.SolidTester.Tool --version 1.0.1
NuGet\Install-Package TerevintoSoftware.SolidTester.Tool -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TerevintoSoftware.SolidTester.Tool" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TerevintoSoftware.SolidTester.Tool --version 1.0.1
#r "nuget: TerevintoSoftware.SolidTester.Tool, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TerevintoSoftware.SolidTester.Tool as a Cake Addin
#addin nuget:?package=TerevintoSoftware.SolidTester.Tool&version=1.0.1

// Install TerevintoSoftware.SolidTester.Tool as a Cake Tool
#tool nuget:?package=TerevintoSoftware.SolidTester.Tool&version=1.0.1

TerevintoSoftware.SolidTester

Nuget version

This project aims to provide a way for c# developers to quickly create Unit Tests for an entire project at once.
This is meant to help people that have a solution without any tests to quickly get up and running, avoiding hours of writing repetitive boilerplate code.

This currently supports only NUnit (v3) and Moq mocks, and it was tested with fairly simple/common scenarios (see the SampleLibrary folder).

Packages

This project is divided in two packages:

Package Purpose
TerevintoSoftware.SolidTester Contains the main logic of the project.
TerevintoSoftware.SolidTester.Tool Contains a .NET Tool that can be invoked to perform the generation.

Sample usage

  1. Install the tool: dotnet tool install TerevintoSoftware.SolidTester.Tool
  2. (optional) See the available options with solid-tester -h
  3. Run the static site generation: solid-tester --assembly "path-to-assembly" --output "path-to-output" --base-namespace YourLibrary.Tests

How to build

  • Install Visual Studio 2022 (.NET 6 required), if needed.
  • Install git, if needed.
  • Clone this repository.
  • Build from Visual Studio or through dotnet build.

Running tests

Once the solution is compiled, tests can be run either from Visual Studio's Test Explorer window, or through dotnet test.

License

The .NET Tool and this solution are licensed under the MIT license.

Bug reports and feature requests

Please use the issue tracker and ensure your question/feedback was not previously reported.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0 188 5/1/2023
1.1.0 161 4/30/2023
1.0.1 156 7/1/2022
1.0.0 148 6/26/2022

[1.0.1]: Improve generated tests, use old namespace declaration for improved compatbility.
[1.0.0]: Initial release.