Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace GVFS.FunctionalTests.Windows.Tests
{
[TestFixture]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
[Category(Categories.WindowsOnly)]
public class DiskLayoutUpgradeTests : TestsWithEnlistmentPerTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace GVFS.FunctionalTests.Windows.Tests
{
[TestFixture]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
[Category(Categories.WindowsOnly)]
public class JunctionAndSubstTests : TestsWithEnlistmentPerFixture
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace GVFS.FunctionalTests.Windows.Tests
{
[TestFixture]
[NonParallelizable]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
[Category(Categories.WindowsOnly)]
public class ServiceTests : TestsWithEnlistmentPerFixture
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace GVFS.FunctionalTests.Windows.Windows.Tests
{
[TestFixture]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
[Category(Categories.WindowsOnly)]
public class SharedCacheUpgradeTests : TestsWithMultiEnlistment
{
Expand Down
2 changes: 1 addition & 1 deletion GVFS/GVFS.FunctionalTests/Categories.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public static class Categories
{
public const string FullSuiteOnly = "FullSuiteOnly";
public const string ExtraCoverage = "ExtraCoverage";
public const string FastFetch = "FastFetch";
public const string GitCommands = "GitCommands";

Expand Down
13 changes: 11 additions & 2 deletions GVFS/GVFS.FunctionalTests/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,18 @@ public static void Main(string[] args)
new object[]
{
new object[] { true }
};
};

if (runner.HasCustomArg("--extra-only"))
{
Console.WriteLine("Running only the tests marked as ExtraCoverage");
includeCategories.Add(Categories.ExtraCoverage);
}
else
{
excludeCategories.Add(Categories.ExtraCoverage);
}

excludeCategories.Add(Categories.FullSuiteOnly);
GVFSTestConfig.FileSystemRunners = FileSystemRunners.FileSystemRunner.DefaultRunners;
}

Expand Down
2 changes: 1 addition & 1 deletion GVFS/GVFS.FunctionalTests/Tests/DiskLayoutVersionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace GVFS.FunctionalTests.Tests
{
[TestFixture]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
public class DiskLayoutVersionTests : TestsWithEnlistmentPerTestCase
{
private const int WindowsCurrentDiskLayoutMajorVersion = 17;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace GVFS.FunctionalTests.Tests.EnlistmentPerFixture
{
[TestFixture]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
public class CacheServerTests : TestsWithEnlistmentPerFixture
{
private const string CustomUrl = "https://myCache";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace GVFS.FunctionalTests.Tests.EnlistmentPerFixture
{
[TestFixture]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
[Category(Categories.MacTODO.M4)]
public class DehydrateTests : TestsWithEnlistmentPerFixture
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace GVFS.FunctionalTests.Tests.EnlistmentPerFixture
{
[TestFixture]
[NonParallelizable]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
public class DiagnoseTests : TestsWithEnlistmentPerFixture
{
private FileSystemRunner fileSystem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace GVFS.FunctionalTests.Tests.EnlistmentPerFixture
{
[TestFixture]
[NonParallelizable]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
[Category(Categories.WindowsOnly)]
public class UpgradeReminderTests : TestsWithEnlistmentPerFixture
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace GVFS.FunctionalTests.Tests.EnlistmentPerFixture
{
[TestFixture]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
public class MountTests : TestsWithEnlistmentPerFixture
{
private const int GVFSGenericError = 3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public ParallelHydrationTests(FileSystemRunner fileSystem)
}

[TestCase]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
public void HydrateRepoInParallel()
{
GitProcess.Invoke(this.Enlistment.RepoRoot, $"checkout -f {FileConstants.CommitId}");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace GVFS.FunctionalTests.Tests.EnlistmentPerFixture
// TODO(Mac): Before these tests can be enabled PostFetchJobShouldComplete needs
// to work on Mac (where post-fetch.lock is not removed from disk)
[TestFixture]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
[Category(Categories.MacTODO.M4)]
public class PrefetchVerbWithoutSharedCacheTests : TestsWithEnlistmentPerFixture
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace GVFS.FunctionalTests.Tests.EnlistmentPerFixture
{
[TestFixture]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
public class UnmountTests : TestsWithEnlistmentPerFixture
{
private FileSystemRunner fileSystem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace GVFS.FunctionalTests.Tests.EnlistmentPerTestCase
{
[TestFixture]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
public class PersistedWorkingDirectoryTests : TestsWithEnlistmentPerTestCase
{
[TestCaseSource(typeof(FileSystemRunner), nameof(FileSystemRunner.Runners))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace GVFS.FunctionalTests.Tests.EnlistmentPerTestCase
{
[TestFixture]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
[Category(Categories.MacTODO.M4)]
public class RepairTests : TestsWithEnlistmentPerTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion GVFS/GVFS.FunctionalTests/Tests/FastFetchTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace GVFS.FunctionalTests.Tests
{
[TestFixture]
[Category(Categories.FastFetch)]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
public class FastFetchTests
{
private const string LsTreeTypeInPathBranchName = "FunctionalTests/20181105_LsTreeTypeInPath";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace GVFS.FunctionalTests.Tests.MultiEnlistmentTests
{
[TestFixture]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
[Category(Categories.MacTODO.M4)]
public class ConfigVerbTests : TestsWithMultiEnlistment
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace GVFS.FunctionalTests.Tests.MultiEnlistmentTests
{
[TestFixture]
[NonParallelizable]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
[Category(Categories.MacTODO.M4)]
public class ServiceVerbTests : TestsWithMultiEnlistment
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace GVFS.FunctionalTests.Tests.MultiEnlistmentTests
{
[TestFixture]
[Category(Categories.FullSuiteOnly)]
[Category(Categories.ExtraCoverage)]
public class SharedCacheTests : TestsWithMultiEnlistment
{
private const string WellKnownFile = "Readme.md";
Expand Down