Fotis Gimian
Fotis Gimian
I just attempted this with the latest nightly 3.0.4-preview.32.gdc6edb1dd7 but sadly the problem persists. Would it assist you if I produced a complete minimal project / solution that demonstrated the...
Here's a fully setup solution with related library and test projects. [CoverletProblem.zip](https://github.com/coverlet-coverage/coverlet/files/6766366/CoverletProblem.zip) I then invoke tests and Coverlet using: ```powershell dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput='../lcov.info' ``` You will see that...
Hey there Marco, I've done a lot more digging and believe that I can explain what's going on a lot better. I also think I have a better solution for...
Good news, as I suspected, I can reproduce the problem with a more succinct example which I've attached below: [CoverletProblem-v2.zip](https://github.com/coverlet-coverage/coverlet/files/6794326/CoverletProblem-v2.zip) The summary of the problem is that Coverlet will detect...
And one final update. I also tested this with [OpenCover](https://github.com/OpenCover/opencover) and it had the same problem as Coverlet. Instructions for doing this via OpenCover (for your reference) are as follows:...
In case it's useful to anyone, I've written a more detailed [blog post](https://fgimian.github.io/unit-testing-powershell-cmdlets-in-c-sharp/) on the approach I've used to overcome this while developing PowerShell cmdlets in C#.
+1 would be nice to see these added please :smile:
Just a little thought (in case it's useful). The wonderful clap crate offers a `default_value` and `default_value_t` where `default_value_t` is a typed value. e.g. ```rust ... #[derive(Clone, Debug, ValueEnum)] pub...
You may also use discovery to run tests, please check out my Flask-Script management command example below: ``` python @manager.command def tests(verbosity=2): """Runs all application unit tests""" if sys.version_info <...
I'd really love to see this too, it was the one obvious thing I felt was missing while using the tool. @tom-james-watson your suggested text looks perfect mate 😄