Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In-process vstest.console #3728

Merged
merged 28 commits into from
Jul 21, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Removed comments from test assets
  • Loading branch information
Codrin Poienaru committed Jul 20, 2022
commit 180e06742c4d7247e61ca8dbada22598273caa13
7 changes: 5 additions & 2 deletions src/Microsoft.TestPlatform.Client/TestPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,11 @@ private static void AddExtensionAssembliesFromExtensionDirectory()
string extensionsFolder = Path.Combine(Path.GetDirectoryName(typeof(TestPlatform).GetTypeInfo().Assembly.GetAssemblyLocation()), "Extensions");
if (!fileHelper.DirectoryExists(extensionsFolder))
cvpoienaru marked this conversation as resolved.
Show resolved Hide resolved
{
// NOMERGE: Since we no-longer run from <playground>\vstest.console\vstest.conosle.exe in Playground, the relative extensions folder location changed.
// And we need to patch it.
// TODO: Since we no-longer run from <playground>\vstest.console\vstest.conosle.exe in Playground, the relative
// extensions folder location changed and we need to patch it. This should be a TEMPORARY solution though, we
// should come up with a better way of fixing this.
// NOTE: This is specific to Playground which references vstest.console from a location that doesn't contain
// the Extensions folder. Normal projects shouldn't have this issue.
extensionsFolder = Path.Combine(Path.GetDirectoryName(extensionsFolder), "vstest.console", "Extensions");
}

Expand Down
15 changes: 0 additions & 15 deletions test/TestAssets/performance/Perfy.TestAdapter/Perfy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,27 +62,12 @@ public void DiscoverTests(IEnumerable<string> _, IDiscoveryContext _2,
var location = typeof(Perfy).Assembly.Location;
var tps = new List<TestProperty>();
Func<object, bool> validator = (object o) => !string.IsNullOrWhiteSpace(o as string);
//foreach (var i in Enumerable.Range(1, 5))
//{
// tps.Add(TestProperty.Register($"Property{i}", $"ManagedType{i}", $"Category{i}", $"Description{i}", typeof(string), null, TestPropertyAttributes.Hidden, typeof(TestCase)));
//}

for (var i = 0; i < Count; i++)
{
var tc = new TestCase($"Test{i}", Uri, location);
tc.DisplayName = "Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.";
//tc.Property1 = "Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.";
//tc.Property2 = "Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.";
//tc.Property3 = "Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.";
//tc.Property4 = "Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.";
//tc.Property5 = "Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.Jak krtecek ke kalhotkam prisel.";
//foreach (var tp in tps)
//{
// tc.SetPropertyValue(tp, "Jak krtecek ke kalhotkam prisel.");
//}
discoverySink.SendTestCase(tc);
}
}
}

}