Skip to content

Commit 91ff891

Browse files
committed
Put decoder and encoder tests in one test collection, so those tests are executed serial
1 parent 0de8878 commit 91ff891

File tree

12 files changed

+12
-0
lines changed

12 files changed

+12
-0
lines changed

tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
// ReSharper disable InconsistentNaming
2121
namespace SixLabors.ImageSharp.Tests.Formats.Bmp
2222
{
23+
[Collection("RunSerial")]
2324
[Trait("Format", "Bmp")]
2425
public class BmpDecoderTests
2526
{

tests/ImageSharp.Tests/Formats/Bmp/BmpEncoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// ReSharper disable InconsistentNaming
2020
namespace SixLabors.ImageSharp.Tests.Formats.Bmp
2121
{
22+
[Collection("RunSerial")]
2223
[Trait("Format", "Bmp")]
2324
public class BmpEncoderTests
2425
{

tests/ImageSharp.Tests/Formats/Gif/GifDecoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// ReSharper disable InconsistentNaming
1818
namespace SixLabors.ImageSharp.Tests.Formats.Gif
1919
{
20+
[Collection("RunSerial")]
2021
[Trait("Format", "Gif")]
2122
public class GifDecoderTests
2223
{

tests/ImageSharp.Tests/Formats/Gif/GifEncoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// ReSharper disable InconsistentNaming
1515
namespace SixLabors.ImageSharp.Tests.Formats.Gif
1616
{
17+
[Collection("RunSerial")]
1718
[Trait("Format", "Gif")]
1819
public class GifEncoderTests
1920
{

tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
2323
{
2424
// TODO: Scatter test cases into multiple test classes
25+
[Collection("RunSerial")]
2526
[Trait("Format", "Jpg")]
2627
public partial class JpegDecoderTests
2728
{

tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
2222
{
23+
[Collection("RunSerial")]
2324
[Trait("Format", "Jpg")]
2425
public class JpegEncoderTests
2526
{

tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// ReSharper disable InconsistentNaming
1717
namespace SixLabors.ImageSharp.Tests.Formats.Png
1818
{
19+
[Collection("RunSerial")]
1920
[Trait("Format", "Png")]
2021
public partial class PngDecoderTests
2122
{

tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
namespace SixLabors.ImageSharp.Tests.Formats.Png
1717
{
18+
[Collection("RunSerial")]
1819
[Trait("Format", "Png")]
1920
public partial class PngEncoderTests
2021
{

tests/ImageSharp.Tests/Formats/Tga/TgaDecoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// ReSharper disable InconsistentNaming
1717
namespace SixLabors.ImageSharp.Tests.Formats.Tga
1818
{
19+
[Collection("RunSerial")]
1920
[Trait("Format", "Tga")]
2021
public class TgaDecoderTests
2122
{

tests/ImageSharp.Tests/Formats/Tga/TgaEncoderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ReSharper disable InconsistentNaming
1414
namespace SixLabors.ImageSharp.Tests.Formats.Tga
1515
{
16+
[Collection("RunSerial")]
1617
[Trait("Format", "Tga")]
1718
public class TgaEncoderTests
1819
{

0 commit comments

Comments
 (0)