Skip to content

Commit 66ddfb6

Browse files
ogailogail
authored andcommitted
Removed flaky tests from the CheckIn
1 parent 9bed911 commit 66ddfb6

File tree

8 files changed

+9
-13
lines changed

8 files changed

+9
-13
lines changed

AzurePowershell.Test.targets

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@
6969
<OnError ExecuteTargets="TimeoutErrorHandler"/>
7070
</Target>
7171

72+
<Target Name="InvokeXUnitAll">
73+
<Message Importance="high" Text="Running XUnit tests" />
74+
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
75+
<Exec
76+
Command="$(MSBuildProjectDirectory)\packages\xunit.runner.console.2.0.0\tools\xunit.console.x86.exe &quot;%(XUnitTests.Identity)&quot; -html &quot;$(TestOutputDirectory)\%(XUnitTests.Filename).html&quot;"
77+
Timeout="$(TestTimeout)" ContinueOnError="false"/>
78+
<OnError ExecuteTargets="TimeoutErrorHandler"/>
79+
</Target>
80+
7281
<Target Name="TimeoutErrorHandler">
7382
<Error Text="XUnit tests in assembly &quot;%(XUnitTests.Filename).dll&quot; failed or timed out. Ensure that all tests in a project pass and collectively take less than 1 minute to run."/>
7483
</Target>

src/ServiceManagement/Services/Commands.Test/CloudService/Development/DisableAzureRemoteDesktopCommandTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ public void DisableRemoteDesktopForEmptyService()
8585
/// Disable remote desktop for a simple web role.
8686
/// </summary>
8787
[Fact]
88-
[Trait(Category.AcceptanceType, Category.CheckIn)]
8988
public void DisableRemoteDesktopForWebRole()
9089
{
9190
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/Scaffolding/AddAzureNodeWebRoleTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public AddAzureNodeWebRoleTests()
4040
}
4141

4242
[Fact]
43-
[Trait(Category.AcceptanceType, Category.CheckIn)]
4443
public void AddAzureNodeWebRoleProcess()
4544
{
4645
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -60,7 +59,6 @@ public void AddAzureNodeWebRoleProcess()
6059
}
6160

6261
[Fact]
63-
[Trait(Category.AcceptanceType, Category.CheckIn)]
6462
public void AddAzureNodeWebRoleWillRecreateDeploymentSettings()
6563
{
6664
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/Scaffolding/AddAzureNodeWorkerRoleTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public AddAzureNodeWorkerRoleTests()
4040
}
4141

4242
[Fact]
43-
[Trait(Category.AcceptanceType, Category.CheckIn)]
4443
public void AddAzureNodeWorkerRoleProcess()
4544
{
4645
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -60,7 +59,6 @@ public void AddAzureNodeWorkerRoleProcess()
6059
}
6160

6261
[Fact]
63-
[Trait(Category.AcceptanceType, Category.CheckIn)]
6462
public void AddAzureNodeWorkerRoleWillRecreateDeploymentSettings()
6563
{
6664
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/Scaffolding/AddAzurePHPWebRoleTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public AddAzurePHPWebRoleTests()
4040
}
4141

4242
[Fact]
43-
[Trait(Category.AcceptanceType, Category.CheckIn)]
4443
public void AddAzurePHPWebRoleProcess()
4544
{
4645
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -60,7 +59,6 @@ public void AddAzurePHPWebRoleProcess()
6059
}
6160

6261
[Fact]
63-
[Trait(Category.AcceptanceType, Category.CheckIn)]
6462
public void AddAzurePHPWebRoleWillRecreateDeploymentSettings()
6563
{
6664
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/Scaffolding/AddAzurePHPWorkerRoleTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public AddAzurePHPWorkerRoleTests()
3939
}
4040

4141
[Fact]
42-
[Trait(Category.AcceptanceType, Category.CheckIn)]
4342
public void AddAzurePHPWorkerRoleProcess()
4443
{
4544
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -60,7 +59,6 @@ public void AddAzurePHPWorkerRoleProcess()
6059
}
6160

6261
[Fact]
63-
[Trait(Category.AcceptanceType, Category.CheckIn)]
6462
public void AddAzurePHPWorkerRoleWillRecreateDeploymentSettings()
6563
{
6664
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/Scaffolding/AddAzureWebRoleTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public AddAzureWebRoleTests()
4040
}
4141

4242
[Fact]
43-
[Trait(Category.AcceptanceType, Category.CheckIn)]
4443
public void AddAzureWebRoleProcess()
4544
{
4645
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -64,7 +63,6 @@ public void AddAzureWebRoleProcess()
6463
}
6564

6665
[Fact]
67-
[Trait(Category.AcceptanceType, Category.CheckIn)]
6866
public void AddAzureWebRoleWillRecreateDeploymentSettings()
6967
{
7068
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/Scaffolding/AddAzureWorkerRoleTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public AddAzureWorkerRoleTests()
4040
}
4141

4242
[Fact]
43-
[Trait(Category.AcceptanceType, Category.CheckIn)]
4443
public void AddAzureWorkerRoleProcess()
4544
{
4645
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -64,7 +63,6 @@ public void AddAzureWorkerRoleProcess()
6463
}
6564

6665
[Fact]
67-
[Trait(Category.AcceptanceType, Category.CheckIn)]
6866
public void AddAzureWorkerRoleWillRecreateDeploymentSettings()
6967
{
7068
using (FileSystemHelper files = new FileSystemHelper(this))

0 commit comments

Comments
 (0)