Skip to content

inyutin-maxim/resharper-testlinker

 
 

Repository files navigation

TestLinker

Build License

TestLinker collects link data between types (i.e., production and test code) based on various mechanisms and provides various features based on that. For your convenience, TestLinker automatically takes base/derived types into account when meaningful.

Navigation

  • Goto Related Files is extended with navigation points to production/test classes.
  • New shortcuts ReSharper_GotoAllLinkedTypes and ReSharper_GotoLinkedTypesWithDerivedName (assignable via keyboard options) that jumps between linked types. In case of multiple linked types, a dedicated popup menu is shown, which can also be displayed in Find Results window.

Test Creation

  • Create production/test class if they don't exist
  • Requires at least one matching pair of test and production class in the project

Test Execution

  • Tests can be executed from their linked production code. This feature automatically integrates with the shortcuts for executing unit tests in run, debug, profile, and cover mode.

Configuration

Link data is currently maintained via:

  • Derived names, as with Calculator and CalculatorTest. Pre-/Postfixes can be configured in the options page.
  • Usages of TypeofAttributes, as in [Subject (typeof (FirstComponent), typeof(SecondComponent)], which are applied to test classes. This custom attribute is especially useful for integration test and can be configured through the options page.

About

Easy navigation between test and production code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 91.4%
  • PowerShell 7.1%
  • Kotlin 1.5%