Microsoft.CodeCoverage package brings infra for collecting code coverage from vstest.console.exe and "dotnet test".
ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov, or lcov into human readable reports in various formats. The reports show the coverage quotas and also visualize which lines of your source code have been covered. Use this package if your project is based on .NET Core and you want to use ReportGenerator as a (global) 'DotnetTool'. Installation: dotnet tool install -g dotnet-reportgenerator-globaltool dotnet tool install dotnet-reportgenerator-globaltool --tool-path tools dotnet new tool-manifest dotnet tool install dotnet-reportgenerator-globaltool Usage: reportgenerator [options] tools\reportgenerator.exe [options] dotnet reportgenerator [options]
ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov, or lcov into human readable reports in various formats. The reports show the coverage quotas and also visualize which lines of your source code have been covered. Use this package if your project is based on .NET Framework or .NET Core and you want to use ReportGenerator via the command line or a build script. Usage: dotnet $(UserProfile)\.nuget\packages\reportgenerator\x.y.z\tools\net8.0\ReportGenerator.dll [options] $(UserProfile)\.nuget\packages\reportgenerator\x.y.z\tools\net8.0\ReportGenerator.exe [options] $(UserProfile)\.nuget\packages\reportgenerator\x.y.z\tools\net47\ReportGenerator.exe [options]
Code coverage Microsoft.Testing.Platform extension.
An open source code coverage tool (branch and sequence point) for all .NET Frameworks 2 and above (including Silverlight). Also capable of handling 32 and 64 bit processes. Use ReportGenerator for best viewing results (also available via Nuget).
UUID is a cutting-edge library meticulously crafted for modern distributed systems, offering unparalleled performance and reliability in unique identifier generation. At its core, the library ensures thread safety while maintaining exceptional performance characteristics, making it ideal for high-throughput applications. It generates time-ordered identifiers that enable natural sorting capabilities, while incorporating cryptographic randomness for enhanced security. The library seamlessly integrates with existing systems through its comprehensive Guid compatibility and intuitive conversion operators. It excels in string handling with efficient parsing and formatting capabilities, supporting versatile encoding formats including Base32 and Base64. The implementation features robust comparison and equality operations, complemented by thread-local secure random generation for optimal performance and security. Built with modern development practices in mind, UUID maintains a compact 16-byte binary format and ensures cross-platform compatibility across the .NET ecosystem. The library is backed by extensive test coverage and performance benchmarks, making it a reliable choice for enterprise-grade applications requiring robust unique identifier generation.
ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov, or lcov into human readable reports in various formats. The reports show the coverage quotas and also visualize which lines of your source code have been covered. Use this package if you want to write a custom plugin for ReportGenerator or if you want to call/execute ReportGenerator within your code base. Plugin development: https://github.com/danielpalme/ReportGenerator/wiki/Custom-reports https://github.com/danielpalme/ReportGenerator/wiki/Custom-history-storage
Coverlet code coverage for Microsoft Testing Platform
This QUnit support for ASP.NET MVC. You may also use it for ASP.NET Webforms, but the css folder will not be on the default location. QUnit is a powerful, easy-to-use, JavaScript test suite. It's used by the jQuery project to test its code and plugins but is capable of testing any generic JavaScript code (and even capable of testing JavaScript code on the server-side). QUnit is especially useful for regression testing: Whenever a bug is reported, write a test that asserts the existence of that particular bug. Then fix it and commit both. Every time you work on the code again, run the tests. If the bug comes up again - a regression - you'll spot it immediately and know how to fix it, because you know what code you just changed. Having good unit test coverage makes safe refactoring easy and cheap. You can run the tests after each small refactoring step and always know what change broke something. QUnit is similar to other unit testing frameworks like JUnit, but makes use of the features JavaScript provides and helps with testing code in the browser, eg. with it's stop/start facilities for testing asynchronous code.
Adds a concept of thread safety to C# and VB so that most threading defects are detected at build-time or in a single-threaded test coverage. Includes thread dispatching aspects. An official PostSharp pattern library.
Unit test stub autogeneration, automatic attribute-based testing, automatic nullability testing, TargetMethodAttribute-based code coverage
C# test runner for Godot. Run tests from the command line, collect code coverage, and debug tests in VSCode.
C# game template for Godot 4 with debug launch configurations, testing (locally and on CI/CD), code coverage, dependency update checks, and spell check working out-of-the-box!
Did you ever got frustrated about the limitations of Enums? Ever needed an Enum that supports Strings? Or your custom type? Did you ever wonder why you can't add any instance methods and properties to an Enum? Do you like to be able to enumerate over all members, ask their names, values and index? Or just call one of your custom method on the instances (strongly typed and real instance methods, not extenstion methods)? Did you ever wonder why you need to specify a value when the enum itself would satisfy your needs? Got annoyed to always have to include that "None"-member? If you answer some of this questions with yes, CustomEnum.vb is definitely something for you, except, of course, if you are a religious C# believer then you need to wait a little bit for the C# version. I have the intension to provide it somewhen soon but I have the feeling it is not done by simply pushing it through the converter. Although this is version 1.0, CustomEnum.vb is a carefully written, highly optimized, with a high code coverage tested and well documented source file written in VB.NET that provides 2 base classes called "CustomEnum" and "ValueEnum" with generic type parameters that allow you to build your own Enums according your individual needs. The first generic type parameter is always the type of your Enum (the subclass), the optional last one the type of the combination (Enum.Combi), and the second one (ValueEnum only) is the type of the value. Here an example: Public Class ShirtSize Inherits CustomEnum(Of ShirtSize) 'Constructors Private Sub New() MyBase.New() End Sub 'Public Fields Public Shared ReadOnly S As New ShirtSize() Public Shared ReadOnly M As New ShirtSize() Public Shared ReadOnly L As New ShirtSize() Public Shared ReadOnly XL As New ShirtSize() End Class The usage is the same as with standard Enums: Dim myShirt As Object = GetShirt(ShirtSize.XL) Private Function GetShirt(size As ShirtSize) As Object '... End Function Note that Enums are now reference types and may be null. Although this forces you to always check for null you never have to include that "None" member in your Enum anymore... If you like to work with "Select Case" that's still possible, you just have to append the ".Index" to the member, eg. ShirtSize.XL.Index. But CustomEnum also provides equals/inequals operators, you can use them like this "If (size = ShirtSize.XL) Then ..." Did I already mention that CustomEnum fully supports member combinations like with the FlagsAttribute? They are implemented as an inner class called "Combi" and there are functions and operators to construct them: SetHighSeasons(Season.Spring Or Season.Summer Or Season.Autumn) And the method looks like this: Private Sub SetHighSeasons(seasons As Season.Combi) For Each mySeason As Season In seasons 'do something Next End Sub There is many more to it: - CustomEnum is thread-safe. - CustomEnum checks and enforces correct implementation. - CustomEnum has lots of attributes applied to simplify editing, debugging and code-analysis. - CustomEnum allows to have subclasses for common functionality (although you cannot inherit members). - CustomEnum runs in partially trusted code as well as in full trust - CustomEnum does not make use of LINQ nor extension methods and is pure .NET 2.0. - CustomEnum has no dependencies to other packages. - CustomEnum only references mscorlib.dll and System.dll. - CustomEnum ships as one single source file (and an additional tutorial folder that can easily be deleted). - CustomEnum is free of charge. Thank you for your interest in this package, feed-back is welcome, our email naming convention is <given name>.<surname>@<company>.ch Best regards Chris
A deliberately-small collection of useful extension methods with an embarrassing lack of test coverage.
- Helper methods collection. Explore functionality for increase coverage gain. - Log4Net integrated - Common Models and Static types added
100% unit test code coverage: FastRandom, ConcurrentRandom (thread safe random), CryptoRandom (rng crypto grade random), ConcurrentCryptoRandom, Next-methods for datatypes: SByte, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64, short, int, long, string. This packet replaces Tedd.MoreRandom and Tedd.RandomExtensions.
Helper methods collection. Explore functionality for increase coverage gain.
Pask extension that provides test automation functionality with code coverage reports generated by dotCover.
Enums and Delegates are a fundimental component of .Net, however, as of version 6.0 of the C# language, there's no way to (directly) constrain a generic parameter to System.Enum or System.Delegate. There's so many reasons to want to do so, not the least of which is the set of kludgy static methods on Enum and Delegate that would really benefit from generic implementations. This package addresses that need. Written in C++/CLI since C# cannot declare an enum or delegate restriction, this library provides a set of well performing extension and static methods off of the "Diagonactic.Enums" class that provide a more readable way of performing common operations on enums and delegates, all of which can be consumed by C# code. Enum methods are stable, Delegate methods are considered "Beta". As a result, the API for Delegate methods may be modified (Obsolete tags for invalid members will be added if this happens), though every effort will be made to avoid this. Enum methods are API stable, however, methods are added occasionally. All stable methods are unit tested for all underlying types with complete code coverage. See release notes and readme.md on the Project site. Included .dll is compiled IL only in "Any CPU" format.
Library to read, write, convert and merge code coverage reports files.
This is a .NET library that generates sets of test cases, for use by parameterised tests. Think of it as being a DSL for making 'object mothers', whose generated data can be used as test cases (or for any other purpose, for that matter). Each test case is built up progressively from smaller pieces of data that are combined together. The smallest pieces are referred to as 'test variables'. Each test variable is constrained to take values from its own set of allowed 'levels'. Changing each test variable independently to a new level produces a new test case. If a test requires a certain 'strength' of coverage of combinations of levels from different test variables, the library produces a stream of test cases that honour this guarantee while avoiding getting swamped with a combinatoric explosion of test cases. If a parameterised test fails with an exception for a specific test case, the library creates a signature that allows it to reproduce the failing test case immediately in a separate test; this is to aid debugging. The sources are written in F#, but the API can be used just as comfortably from C# as from F#. The documentation is on the front page of the GitHub site: https://github.com/sageserpent-open/NTestCaseBuilder. You can also find sample code ready to run by installing the NuGet samples package: https://www.nuget.org/packages/NTestCaseBuilder.Samples.
OpenCodeCoverageFramework is a framework for measurement of test coverage supporting multiple programming languages.
A fluent assertions library that performs full coverage on enumerable types.
Helper methods collection. Explore functionality for increase coverage gain.
Extensions to the `dotnet test` command that enable code coverage reporting (using OpenCover) and a few other bonus features. NOTE: Due to OpenCover being Windows only, this tool will only work on Windows Features 1. Run `dotnet test` with code coverage tracking by OpenCover 2. Generate cobertura covberage results (useful for VSTS/TFS coverage reporting). 3. Generate an HTML coverage report 4. Discover all test projects in a folder and run tests for all of them (not natively supported by `dotnet test`). Works nicely with `dotnet watch` for continuous testing of an entire solution See https://github.com/duanemck/dotnet-testx for more details
A testing module for PsMake, allowing to execute nunit/nunit3/mbunit/mstest/xunit/dotnet tests with optional coverage check
CLI tool for computing CRAP (Change Risk Anti-Patterns) scores on .NET projects. Combines cyclomatic complexity with code coverage to identify risky, under-tested methods.
EF4 Templates uses T4toolbox to generate Repositories, Unit of work, POCO entities that can be unit tested, achieving over 90% code coverage. They also generate an ODATA service with authentication.
Enables per-test coverage in JetBrains dotCover for test frameworks built on Microsoft.Testing.Platform, such as TUnit.
Cross-platform code coverage for .NET with explicit target framework support.
NCrunch is an automated concurrent testing tool for Visual Studio .NET 2015. It intelligently runs automated tests so that you don't have to, and gives you a huge amount of useful information about your tested code, such as code coverage and performance metrics, inline in your IDE while you type.
Helper methods collection. Explore functionality for increase coverage gain.
Unit test sources for XrmFramework. Reference this package in your test project to compile the Framework's tests directly into your assembly and measure code coverage of the Framework itself. The .cs files are embedded as contentFiles (buildAction=Compile): they are added to the consuming project's compilation without an extra DLL.