Browse Source

Merge pull request #2928 from SixLabors/js/fix-codecov-ci

Fix Code Coverage Tests
pull/2930/head
James Jackson-South 12 months ago
committed by GitHub
parent
commit
4b297447df
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 23
      tests/ImageSharp.Tests/TestUtilities/TestImageExtensions.cs

23
tests/ImageSharp.Tests/TestUtilities/TestImageExtensions.cs

@ -59,11 +59,6 @@ public static class TestImageExtensions
bool appendSourceFileOrDescription = true,
IImageEncoder encoder = null)
{
if (TestEnvironment.RunsWithCodeCoverage)
{
return image;
}
provider.Utility.SaveTestOutputFile(
image,
extension,
@ -112,11 +107,6 @@ public static class TestImageExtensions
Func<int, int, bool> predicate = null)
where TPixel : unmanaged, IPixel<TPixel>
{
if (TestEnvironment.RunsWithCodeCoverage)
{
return image;
}
provider.Utility.SaveTestOutputFileMultiFrame(
image,
extension,
@ -298,24 +288,23 @@ public static class TestImageExtensions
appendPixelTypeToFileName,
predicate: predicate);
using (Image<TPixel> debugImage = GetDebugOutputImageMultiFrame<TPixel>(
using Image<TPixel> debugImage = GetDebugOutputImageMultiFrame<TPixel>(
provider,
image.Frames.Count,
testOutputDetails,
extension,
appendPixelTypeToFileName,
predicate: predicate))
predicate: predicate);
using (Image<TPixel> referenceImage = GetReferenceOutputImageMultiFrame<TPixel>(
using Image<TPixel> referenceImage = GetReferenceOutputImageMultiFrame<TPixel>(
provider,
image.Frames.Count,
testOutputDetails,
extension,
appendPixelTypeToFileName,
predicate: predicate))
{
comparer.VerifySimilarity(referenceImage, debugImage);
}
predicate: predicate);
comparer.VerifySimilarity(referenceImage, debugImage);
return image;
}

Loading…
Cancel
Save