Closed medoni closed 8 months ago
Hi @medoni, first of all thank you very much for your interest in the project and your contribution.
We have looked into your extension methods but although we think that these might be perfectly suitable for you and your project, we also believe that they would be too hard to generalize. As of now they simply rely on the naming conventions for classes/methods and corresponding tests in your project - in another project there might not even be a naming convention that could be used or the tests could indicate that unit tests exist just based on the naming even if they don't.
In general, if you would like to see which classes and methods in your project are unittested, we would recommend to use a dedicated code coverage tool as this would be a much better fit for this specific usecase than ArchUnitNet.
As an Software Architect I want to specify which Layers have to be unit tested. For doing this, I've written an extension method to the
Should()
fluent api.ClassesThatShouldBeTested
can be defined as follows:Does it make sense to create a pull request for this extension? What are your requirements for such a helper method?
The full example can be see in here:
Including tests