Skip to content

Commit fd10690

Browse files
author
Alexander Rosolko
committed
Add test categories
1 parent dc9bbf5 commit fd10690

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

IntegrationTests/BinaryServiceTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace IntegrationTests
77
{
88
public class BinaryServiceTests : BinaryService
99
{
10-
[Fact]
10+
[Fact, Trait("Category", "Binary")]
1111
public void DownloadZipResultNotEmpty()
1212
{
1313
const string url = "https://chromedriver.storage.googleapis.com/2.27/chromedriver_win32.zip";
@@ -17,7 +17,7 @@ public void DownloadZipResultNotEmpty()
1717
Assert.True(File.Exists(result));
1818
}
1919

20-
[Fact]
20+
[Fact, Trait("Category", "Binary")]
2121
public void UnZipResultNotEmpty()
2222
{
2323
var zipPath = Path.Combine(Directory.GetCurrentDirectory(), "Assets", "unzipable.zip");
@@ -28,7 +28,7 @@ public void UnZipResultNotEmpty()
2828
Assert.True(File.Exists(result));
2929
}
3030

31-
[Fact]
31+
[Fact, Trait("Category", "Binary")]
3232
public void RemoveZipTargetMissing()
3333
{
3434
var zipPath = Path.Combine(Directory.GetCurrentDirectory(), "Assets", "removable.zip");

IntegrationTests/BrowserTests/BrowserTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ public class BrowserData : IEnumerable<object[]>
1414
private readonly List<object[]> _data = new List<object[]>
1515
{
1616
new object[] {new ChromeConfig(), DriverType.Chrome},
17-
// new object[] {new EdgeConfig(), DriverType.Edge},
17+
new object[] {new EdgeConfig(), DriverType.Edge},
1818
new object[] {new FirefoxConfig(), DriverType.Firefox},
1919
new object[] {new IEConfig(), DriverType.IE},
20-
// new object[] {new OperaConfig(), DriverType.Opera},
20+
new object[] {new OperaConfig(), DriverType.Opera},
2121
new object[] {new PhantomConfig(), DriverType.Phantom}
2222
};
2323

@@ -36,7 +36,7 @@ public class BrowserTests : IDisposable
3636
{
3737
private IWebDriver _webDriver;
3838

39-
[Theory, ClassData(typeof(BrowserData))]
39+
[Theory, ClassData(typeof(BrowserData)), Trait("Category", "Browser")]
4040
protected void BrowserTest(IDriverConfig driverConfig, DriverType driverType)
4141
{
4242
if (driverType == DriverType.Phantom)

IntegrationTests/VariableServiceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace IntegrationTests
77
{
88
public class VariableServiceTests : VariableService
99
{
10-
[Fact]
10+
[Fact, Trait("Category", "Variable")]
1111
public void UpdatePathResultValid()
1212
{
1313
var filePath = Path.Combine(Directory.GetCurrentDirectory(), "Assets", "file.txt");

IntegrationTests/VersionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ IEnumerator IEnumerable.GetEnumerator()
3232

3333
public class VersionTests
3434
{
35-
[Theory, ClassData(typeof(IndexOfData))]
35+
[Theory, ClassData(typeof(IndexOfData)), Trait("Category", "Version")]
3636
protected void VersionTest(IDriverConfig driverConfig, string pattern)
3737
{
3838
var version = driverConfig.GetLatestVersion();

0 commit comments

Comments
 (0)