Closed ashovlin closed 2 months ago
Attention: Patch coverage is 91.02564%
with 7 lines
in your changes missing coverage. Please review.
Project coverage is 61.85%. Comparing base (
bca37f9
) to head (3723451
). Report is 1 commits behind head on dev.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Please add tests that go over the non-covered areas to address the CodeCov warnings
Fixed now. For the one outstanding warning, that's where we're reporting that Docker is in "windows" mode. I added a test for this, but it returns early if not running on Windows because we assume "linux" otherwise.
I'm good with the changes, but Codecov still shows a warning. Could you please tackle that?
Wrote a summary up in https://github.com/aws/aws-dotnet-deploy/pull/837#issuecomment-2197500039, essentially those lines will only ever be invoked on Windows (it's when Docker is running in Windows mode, which isn't possible on Linux/OSX), so the test that I did add returns early. I don't think it's worth mocking out the OS detection just for this coverage.
Noticed another issue while doing final testing in Visual Studio, I didn't realize that SystemCapabilityEvaluator
was being recreated per server mode API call, which defeats the point of the caching. Addressed in https://github.com/aws/aws-dotnet-deploy/pull/837/commits/3723451b970e68bda2ec9763356fca57938ceda0
Issue #, if available: DOTNET-7552
Description of changes: The deploy tool checks whether the user has Node.JS and Docker installed, since those are required for most deployments.
I also consolidated two different helpers for unit testing
CommandLineWrapper
into one.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.