RandomEngy / UnitTestBoilerplateGenerator

An extension for Visual Studio that generates a unit test boilerplate from a given class, setting up mocks for all dependencies. Supports NUnit, Visual Studio Test, XUnit and many mock frameworks.
https://marketplace.visualstudio.com/items?itemName=RandomEngy.UnitTestBoilerplateGenerator
MIT License
64 stars 17 forks source link

Feature request: smarter last selected test project #19

Closed 304NotModified closed 3 years ago

304NotModified commented 3 years ago

Installed product versions

Description

Currently this tool remembers the last selected test project in a solution, but that won't work well with multiple projects,

Proposed behavior

Remember the last selected test project on project-scope. E.g.

If we have two projects

project1 & project2

and two test projects: project1.test and project2.tests

If would be nice if the tool remembers project1.tests for project1 and project2.tests for project2

gleb-osokin commented 3 years ago

I have created a PR https://github.com/RandomEngy/UnitTestBoilerplateGenerator/pull/25 that, while not exactly doing what is proposed here, but tries to tackle the problem in a different way: by providing the test project name format setting, so that the test can be preselected based on the template.

Please check if it is something that you might find useful.

RandomEngy commented 3 years ago

Added in v2.7.0.

304NotModified commented 3 years ago

great! Thanks @gleb-osokin & @RandomEngy