Skip to content

Commit 5e8f728

Browse files
committed
Add integration test for solution filter support
1 parent e830be5 commit 5e8f728

31 files changed

+420
-1
lines changed

.vscode/launch.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,31 @@
128128
],
129129
"preLaunchTask": "buildDev"
130130
},
131+
{
132+
"name": "Launch slnFilterWithCsproj Workspace Tests",
133+
"type": "extensionHost",
134+
"request": "launch",
135+
"runtimeExecutable": "${execPath}",
136+
"args": [
137+
"--disable-extensions",
138+
"${workspaceRoot}/test/integrationTests/testAssets/slnFilterWithCsproj",
139+
"--extensionDevelopmentPath=${workspaceRoot}",
140+
"--extensionTestsPath=${workspaceRoot}/out/test/integrationTests"
141+
],
142+
"env": {
143+
"CODE_WORKSPACE_ROOT": "${workspaceRoot}",
144+
"CODE_TESTS_PATH": "${workspaceRoot}/out/test/integrationTests",
145+
"CODE_TESTS_WORKSPACE": "${workspaceRoot}/test/integrationTests/testAssets/slnFilterWithCsproj",
146+
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
147+
"OSVC_SUITE": "slnFilterWithCsproj"
148+
},
149+
"stopOnEntry": false,
150+
"sourceMaps": true,
151+
"outFiles": [
152+
"${workspaceRoot}/dist/*.js"
153+
],
154+
"preLaunchTask": "buildDev"
155+
},
131156
{
132157
"type": "node",
133158
"request": "launch",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"test:integration": "gulp test:integration",
4646
"test:integration:singleCsproj": "gulp test:integration:singleCsproj",
4747
"test:integration:slnWithCsproj": "gulp test:integration:slnWithCsproj",
48+
"test:integration:slnFilterWithCsproj": "gulp test:integration:slnFilterWithCsproj",
4849
"test:release": "mocha --config ./.mocharc.jsonc test/releaseTests/**/*.test.ts",
4950
"test:artifacts": "mocha --config ./.mocharc.jsonc test/artifactTests/**/*.test.ts",
5051
"postinstall": "node ./node_modules/vscode/bin/install",

tasks/testTasks.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ gulp.task("test:integration:slnWithCsproj", async () => {
4545
return runIntegrationTest("slnWithCsproj");
4646
});
4747

48+
gulp.task("test:integration:slnFilterWithCsproj", async () => {
49+
return runIntegrationTest("slnFilterWithCsproj");
50+
});
51+
4852
gulp.task("test:integration:BasicRazorApp2_1", async () => {
4953
return runIntegrationTest("BasicRazorApp2_1");
5054
});
@@ -53,6 +57,7 @@ gulp.task(
5357
"test:integration", gulp.series(
5458
"test:integration:singleCsproj",
5559
"test:integration:slnWithCsproj",
60+
"test:integration:slnFilterWithCsproj",
5661
"test:integration:BasicRazorApp2_1"
5762
));
5863

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*--------------------------------------------------------------------------------------------*/
5+
6+
import { ITestAssetWorkspace } from "./testAssets";
7+
8+
let workspace: ITestAssetWorkspace = {
9+
description: "sln filter with a csproj's",
10+
projects: [{
11+
relativeFilePath: "src/app/app.csproj"
12+
}]
13+
};
14+
15+
export default workspace;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/obj/
2+
**/bin/
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"omnisharp.defaultLaunchSolution": "SolutionFilter.slnf",
3+
"omnisharp.path": "latest",
4+
"omnisharp.enableRoslynAnalyzers": true
5+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.26124.0
5+
MinimumVisualStudioVersion = 15.0.26124.0
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{D28FC441-C95D-47D2-8D5C-E401ABAD7C64}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "app", "src\app\app.csproj", "{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lib", "src\lib\lib.csproj", "{717BE881-D74C-45FC-B55D-2085499E1BF8}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "test\test.csproj", "{4679428B-0CA0-4228-B8C0-B676B34A1B30}"
13+
EndProject
14+
Global
15+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
16+
Debug|Any CPU = Debug|Any CPU
17+
Debug|x64 = Debug|x64
18+
Debug|x86 = Debug|x86
19+
Release|Any CPU = Release|Any CPU
20+
Release|x64 = Release|x64
21+
Release|x86 = Release|x86
22+
EndGlobalSection
23+
GlobalSection(SolutionProperties) = preSolution
24+
HideSolutionNode = FALSE
25+
EndGlobalSection
26+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
27+
{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
28+
{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3}.Debug|Any CPU.Build.0 = Debug|Any CPU
29+
{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3}.Debug|x64.ActiveCfg = Debug|x64
30+
{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3}.Debug|x64.Build.0 = Debug|x64
31+
{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3}.Debug|x86.ActiveCfg = Debug|x86
32+
{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3}.Debug|x86.Build.0 = Debug|x86
33+
{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3}.Release|Any CPU.ActiveCfg = Release|Any CPU
34+
{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3}.Release|Any CPU.Build.0 = Release|Any CPU
35+
{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3}.Release|x64.ActiveCfg = Release|x64
36+
{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3}.Release|x64.Build.0 = Release|x64
37+
{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3}.Release|x86.ActiveCfg = Release|x86
38+
{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3}.Release|x86.Build.0 = Release|x86
39+
{717BE881-D74C-45FC-B55D-2085499E1BF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
40+
{717BE881-D74C-45FC-B55D-2085499E1BF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
41+
{717BE881-D74C-45FC-B55D-2085499E1BF8}.Debug|x64.ActiveCfg = Debug|x64
42+
{717BE881-D74C-45FC-B55D-2085499E1BF8}.Debug|x64.Build.0 = Debug|x64
43+
{717BE881-D74C-45FC-B55D-2085499E1BF8}.Debug|x86.ActiveCfg = Debug|x86
44+
{717BE881-D74C-45FC-B55D-2085499E1BF8}.Debug|x86.Build.0 = Debug|x86
45+
{717BE881-D74C-45FC-B55D-2085499E1BF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
46+
{717BE881-D74C-45FC-B55D-2085499E1BF8}.Release|Any CPU.Build.0 = Release|Any CPU
47+
{717BE881-D74C-45FC-B55D-2085499E1BF8}.Release|x64.ActiveCfg = Release|x64
48+
{717BE881-D74C-45FC-B55D-2085499E1BF8}.Release|x64.Build.0 = Release|x64
49+
{717BE881-D74C-45FC-B55D-2085499E1BF8}.Release|x86.ActiveCfg = Release|x86
50+
{717BE881-D74C-45FC-B55D-2085499E1BF8}.Release|x86.Build.0 = Release|x86
51+
{4679428B-0CA0-4228-B8C0-B676B34A1B30}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
52+
{4679428B-0CA0-4228-B8C0-B676B34A1B30}.Debug|Any CPU.Build.0 = Debug|Any CPU
53+
{4679428B-0CA0-4228-B8C0-B676B34A1B30}.Debug|x64.ActiveCfg = Debug|x64
54+
{4679428B-0CA0-4228-B8C0-B676B34A1B30}.Debug|x64.Build.0 = Debug|x64
55+
{4679428B-0CA0-4228-B8C0-B676B34A1B30}.Debug|x86.ActiveCfg = Debug|x86
56+
{4679428B-0CA0-4228-B8C0-B676B34A1B30}.Debug|x86.Build.0 = Debug|x86
57+
{4679428B-0CA0-4228-B8C0-B676B34A1B30}.Release|Any CPU.ActiveCfg = Release|Any CPU
58+
{4679428B-0CA0-4228-B8C0-B676B34A1B30}.Release|Any CPU.Build.0 = Release|Any CPU
59+
{4679428B-0CA0-4228-B8C0-B676B34A1B30}.Release|x64.ActiveCfg = Release|x64
60+
{4679428B-0CA0-4228-B8C0-B676B34A1B30}.Release|x64.Build.0 = Release|x64
61+
{4679428B-0CA0-4228-B8C0-B676B34A1B30}.Release|x86.ActiveCfg = Release|x86
62+
{4679428B-0CA0-4228-B8C0-B676B34A1B30}.Release|x86.Build.0 = Release|x86
63+
EndGlobalSection
64+
GlobalSection(NestedProjects) = preSolution
65+
{D36E1CC9-62CA-45A3-8BD0-6ADC2767FFB3} = {D28FC441-C95D-47D2-8D5C-E401ABAD7C64}
66+
{717BE881-D74C-45FC-B55D-2085499E1BF8} = {D28FC441-C95D-47D2-8D5C-E401ABAD7C64}
67+
EndGlobalSection
68+
EndGlobal
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"solution": {
3+
"path": "SolutionFile.sln",
4+
"projects": [
5+
"src\\app\\app.csproj"
6+
]
7+
}
8+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
class C {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class DocComments
2+
{
3+
///
4+
string M(int param1, string param2)
5+
{
6+
return null;
7+
}
8+
9+
/// <summary>
10+
11+
/// </summary>
12+
void M2() {}
13+
}

0 commit comments

Comments
 (0)