glconti / TestLinker

Easy navigation between test and production code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 popmenu 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.

Roadmap

Installation

Open ReSharper`s Extension Manager (Alt+R,X) and search for TestLinker.

About

Easy navigation between test and production code.

License:MIT License


Languages

Language:C# 97.3%Language:PowerShell 1.5%Language:Shell 1.1%Language:Batchfile 0.0%