Skip to content

Commit

Permalink
Parallel tests (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
belav authored Dec 20, 2021
1 parent fb443b9 commit dcd11ca
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ using NUnit.Framework;
namespace CSharpier.Tests.FormattingTests
{
[TestFixture]
[Parallelizable(ParallelScope.All)]
public class FormattingTests : BaseTest
{
{{- for test in Tests }}
Expand Down
1 change: 1 addition & 0 deletions Src/CSharpier.Tests/CodeFormatterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace CSharpier.Tests;

[TestFixture]
[Parallelizable(ParallelScope.All)]
internal class CodeFormatterTests
{
[TestCase(EndOfLine.LF, "\n")]
Expand Down
1 change: 1 addition & 0 deletions Src/CSharpier.Tests/CommandLineFormatterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace CSharpier.Tests;

[TestFixture]
[Parallelizable(ParallelScope.Fixtures)]
public class CommandLineFormatterTests
{
private MockFileSystem fileSystem;
Expand Down
1 change: 1 addition & 0 deletions Src/CSharpier.Tests/ConfigurationFileOptionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
namespace CSharpier.Tests;

[TestFixture]
[Parallelizable(ParallelScope.Fixtures)]
public class ConfigurationFileOptionsTests
{
private MockFileSystem fileSystem;
Expand Down
1 change: 1 addition & 0 deletions Src/CSharpier.Tests/DeepRecursionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace CSharpier.Tests;

[Parallelizable(ParallelScope.All)]
public class DeepRecursionTests
{
[Test]
Expand Down
1 change: 1 addition & 0 deletions Src/CSharpier.Tests/DisabledTextComparerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace CSharpier.Tests;

[TestFixture]
[Parallelizable(ParallelScope.All)]
public class DisabledTextComparerTests
{
[Test]
Expand Down
2 changes: 2 additions & 0 deletions Src/CSharpier.Tests/DocPrinterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

namespace CSharpier.Tests;

[TestFixture]
[Parallelizable(ParallelScope.All)]
public class DocPrinterTests
{
private static readonly string NewLine = System.Environment.NewLine;
Expand Down
1 change: 1 addition & 0 deletions Src/CSharpier.Tests/DocSerializerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace CSharpier.Tests;

[TestFixture]
[Parallelizable(ParallelScope.All)]
internal class DocSerializerTests
{
[Test]
Expand Down
2 changes: 2 additions & 0 deletions Src/CSharpier.Tests/DocUtilitiesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

namespace CSharpier.Tests;

[TestFixture]
[Parallelizable(ParallelScope.All)]
public class DocUtilitiesTests
{
[Test]
Expand Down
2 changes: 1 addition & 1 deletion Src/CSharpier.Tests/FormattingTests/BaseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class BaseTest
{
private DirectoryInfo rootDirectory;

[SetUp]
[OneTimeSetUp]
public void Setup()
{
this.rootDirectory = new DirectoryInfo(Directory.GetCurrentDirectory());
Expand Down
2 changes: 2 additions & 0 deletions Src/CSharpier.Tests/LineEndingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

namespace CSharpier.Tests;

[TestFixture]
[Parallelizable(ParallelScope.All)]
internal class LineEndingTests
{
[Test]
Expand Down
2 changes: 2 additions & 0 deletions Src/CSharpier.Tests/MissingTypeChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

namespace CSharpier.Tests;

[TestFixture]
[Parallelizable(ParallelScope.All)]
public class MissingTypeChecker
{
[Test]
Expand Down
1 change: 1 addition & 0 deletions Src/CSharpier.Tests/ResultPrinterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace CSharpier.Tests;

[TestFixture]
[Parallelizable(ParallelScope.All)]
public class ResultPrinterTests
{
[Test]
Expand Down
2 changes: 2 additions & 0 deletions Src/CSharpier.Tests/Samples/Samples.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

namespace CSharpier.Tests.Samples;

[TestFixture]
[Parallelizable(ParallelScope.All)]
public class Samples
{
[Test]
Expand Down
2 changes: 2 additions & 0 deletions Src/CSharpier.Tests/SyntaxNodeComparerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

namespace CSharpier.Tests;

[TestFixture]
[Parallelizable(ParallelScope.All)]
public class SyntaxNodeComparerTests
{
[Test]
Expand Down
2 changes: 2 additions & 0 deletions Src/CSharpier.Tests/SyntaxPrinter/PreprocessorSymbolsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

namespace CSharpier.Tests.SyntaxPrinter;

[TestFixture]
[Parallelizable(ParallelScope.All)]
public class PreprocessorSymbolsTests
{
[TestCase("BASIC_IF", "BASIC_IF")]
Expand Down
1 change: 1 addition & 0 deletions Src/CSharpier.Tests/Utilities/StringDifferTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace CSharpier.Tests.Utilities;

[TestFixture]
[Parallelizable(ParallelScope.All)]
public class StringDifferTests
{
[Test]
Expand Down

0 comments on commit dcd11ca

Please sign in to comment.