Skip to content

Commit

Permalink
Speeding up integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Jan 24, 2024
1 parent ad027e7 commit 98b18b9
Show file tree
Hide file tree
Showing 27 changed files with 9 additions and 28 deletions.
3 changes: 2 additions & 1 deletion build/PackTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ private string CreateGeneratorPackage(NuGetVersion packageVersion, CodeAnalysis
("configuration", _settings.Configuration),
("version", packageVersion.ToString()),
("AnalyzerRoslynVersion", analyzerRoslynVersion.ToString()),
("AnalyzerRoslynPackageVersion", analyzerRoslynPackageVersion.ToString())
("AnalyzerRoslynPackageVersion", analyzerRoslynPackageVersion.ToString()),
("CI", "true")
};

var build = new MSBuild()
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/ArgsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

using Core;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class ArgsTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/ArrayInjectionTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class ArrayInjectionTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/AutoBindingTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class AutoBindingTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/BclInjectionTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class BclInjectionTests
{
[Theory]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/BenchmarksTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class BenchmarksTests
{
private const string Models = """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class CompositionInjectionTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/CtorTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// ReSharper disable StringLiteralTypo
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class CtorTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/EnumerableInjectionTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class EnumerableInjectionTests
{
[Theory]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/FactoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

using Core;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class FactoryTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/FieldInjectionTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class FieldInjectionTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/FuncTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class FuncTests
{
[Theory]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/GenericsTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class GenericsTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/GraphTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ namespace Pure.DI.IntegrationTests;
using Core;
using Core.Models;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class GraphTests
{
[Fact]
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/LifetimesTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class LifetimesTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/MethodInjectionTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class MethodInjectionTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/NamespaceTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class NamespaceTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/PartialMethodsTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class PartialMethodsTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/PropertyInjectionTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class PropertyInjectionTests
{
[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@
</PackageReference>
</ItemGroup>

<ItemGroup Condition="'$(CI)'!=''">
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/ResolversTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class ResolversTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/SetupTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

using Core;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class SetupTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/ShroedingersCatTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class ShroedingersCatTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/TagsTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Pure.DI.IntegrationTests;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class TagsTests
{
[Fact]
Expand Down
1 change: 0 additions & 1 deletion tests/Pure.DI.IntegrationTests/TuplesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

using Core;

[Collection(nameof(IntegrationTestsCollectionDefinition))]
public class TuplesTests
{
[Fact]
Expand Down
3 changes: 3 additions & 0 deletions tests/Pure.DI.IntegrationTests/xunit.runner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parallelizeTestCollections": false
}

0 comments on commit 98b18b9

Please sign in to comment.