Skip to content

Commit d5582ef

Browse files
committed
Added unit/integration test catagories for filtering unit test runs
1 parent b3c43b1 commit d5582ef

File tree

9 files changed

+18
-14
lines changed

9 files changed

+18
-14
lines changed

DataPipelineTools.Tests/Common/FilterFactoryTests/CreateTests.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Collections.ObjectModel;
4-
using Castle.Core.Logging;
1+
using System.Collections.Generic;
52
using Microsoft.Extensions.Logging;
63
using Moq;
74
using NUnit.Framework;
8-
using NUnit.Framework.Constraints;
95
using SqlCollaborative.Azure.DataPipelineTools.Common;
10-
using SqlCollaborative.Azure.DataPipelineTools.DataLake;
116

127
namespace DataPipelineTools.Tests.Common.FilterFactoryTests
138
{
149
[TestFixture]
10+
[Category(nameof(TestType.UnitTest))]
1511
public class CreateTests : TestBase<FilterFactory<TestPoco>>
1612
{
1713
[SetUp]

DataPipelineTools.Tests/Common/FilterTests/GetDynamicLinqStringTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
namespace DataPipelineTools.Tests.Common.FilterTests
55
{
66
[TestFixture]
7+
[Category(nameof(TestType.UnitTest))]
78
public class GetDynamicLinqStringTests : TestBase
89
{
910
[SetUp]

DataPipelineTools.Tests/Common/FilterTests/GetDynamicLinqValueTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace DataPipelineTools.Tests.Common.FilterTests
66
{
77
[TestFixture]
8+
[Category(nameof(TestType.UnitTest))]
89
public class GetDynamicLinqValueTests : TestBase
910
{
1011
[SetUp]

DataPipelineTools.Tests/Common/FilterTests/PropertyTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
namespace DataPipelineTools.Tests.Common.FilterTests
55
{
66
[TestFixture]
7+
[Category(nameof(TestType.UnitTest))]
78
public class PropertyTests : TestBase
89
{
910
[SetUp]

DataPipelineTools.Tests/DataLake/DataLakeServiceTests/CheckPathAsyncTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace DataPipelineTools.Tests.DataLake.DataLakeServiceTests
77
{
88
[TestFixture]
9+
[Category(nameof(TestType.UnitTest))]
910
public class CheckPathAsyncTests: DataLakeTestBase
1011
{
1112

DataPipelineTools.Tests/DataLake/DataLakeServiceTests/GetItemsAsyncTests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
using System;
2-
using System.Collections.Generic;
1+
using System.Collections.Generic;
32
using System.Linq;
4-
using Microsoft.Extensions.Logging;
53
using Moq;
6-
using Newtonsoft.Json;
7-
using Newtonsoft.Json.Linq;
84
using NUnit.Framework;
95
using SqlCollaborative.Azure.DataPipelineTools.Common;
106
using SqlCollaborative.Azure.DataPipelineTools.DataLake;
@@ -13,6 +9,7 @@
139
namespace DataPipelineTools.Tests.DataLake.DataLakeServiceTests
1410
{
1511
[TestFixture]
12+
[Category(nameof(TestType.UnitTest))]
1613
public class GetItemsAsyncTests : DataLakeTestBase
1714
{
1815

DataPipelineTools.Tests/DataLake/DataLakeTestBase.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
using Azure;
77
using Azure.Storage.Files.DataLake;
88
using Azure.Storage.Files.DataLake.Models;
9-
using Microsoft.Extensions.Logging;
109
using Moq;
1110
using SqlCollaborative.Azure.DataPipelineTools.DataLake;
1211

13-
namespace DataPipelineTools.Tests.DataLake
12+
namespace DataPipelineTools.Tests.DataLake
1413
{
1514
/// <summary>
1615
/// Base class for tests that need to mock the DataLakeFileSystemClient classes
@@ -24,7 +23,6 @@ public class DataLakeTestBase : TestBase<DataLakeServiceFactory>
2423

2524
protected readonly Mock<DataLakeFileSystemClient> MockFileSystemClient;
2625

27-
2826
public DataLakeTestBase()
2927
{
3028
// Get test data to mock the file system

DataPipelineTools.Tests/DataLake/Model/DataLakeConfigTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
namespace DataPipelineTools.Tests.DataLake.Model
55
{
66
[TestFixture]
7+
[Category(nameof(TestType.UnitTest))]
78
public class DataLakeConfigTests
89
{
910
private const string AccountUri = "mydatalake";

DataPipelineTools.Tests/TestType.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace DataPipelineTools.Tests
2+
{
3+
public enum TestType
4+
{
5+
UnitTest,
6+
IntegrationTest
7+
}
8+
}

0 commit comments

Comments
 (0)