Skip to content

Commit 0d2d4ef

Browse files
authored
Merge pull request #88 from fossa-app/fix-tests
fix tests
2 parents 7b68023 + 14157bd commit 0d2d4ef

3 files changed

Lines changed: 79 additions & 4 deletions

File tree

.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": ".NET Core Launch (console)",
6+
"type": "coreclr",
7+
"request": "launch",
8+
"preLaunchTask": "build tests",
9+
"program": "${workspaceFolder}/tests/Bridge.Tests/bin/Debug/net10.0/Fossa.Bridge.Tests.dll",
10+
"args": [],
11+
"cwd": "${workspaceFolder}/tests/Bridge.Tests",
12+
"console": "internalConsole",
13+
"stopAtEntry": false
14+
}
15+
]
16+
}

.vscode/tasks.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "run tests",
6+
"type": "process",
7+
"command": "dotnet",
8+
"args": [
9+
"run",
10+
"--project",
11+
"${workspaceFolder}/tests/Bridge.Tests/Bridge.Tests.fsproj"
12+
],
13+
"problemMatcher": "$msCompile",
14+
"group": {
15+
"kind": "test",
16+
"isDefault": true
17+
},
18+
"presentation": {
19+
"echo": true,
20+
"reveal": "always",
21+
"focus": false,
22+
"panel": "shared",
23+
"showReuseMessage": true,
24+
"clear": false
25+
}
26+
},
27+
{
28+
"label": "watch tests",
29+
"type": "process",
30+
"command": "dotnet",
31+
"args": [
32+
"watch",
33+
"run",
34+
"--project",
35+
"${workspaceFolder}/tests/Bridge.Tests/Bridge.Tests.fsproj"
36+
],
37+
"problemMatcher": "$msCompile",
38+
"group": "test",
39+
"isBackground": true,
40+
"presentation": {
41+
"echo": true,
42+
"reveal": "always",
43+
"focus": false,
44+
"panel": "shared",
45+
"showReuseMessage": true,
46+
"clear": false
47+
}
48+
},
49+
{
50+
"label": "build tests",
51+
"command": "dotnet",
52+
"type": "process",
53+
"args": [
54+
"build",
55+
"${workspaceFolder}/tests/Bridge.Tests/Bridge.Tests.fsproj",
56+
"/property:GenerateFullPaths=true",
57+
"/consoleloggerparameters:NoSummary"
58+
],
59+
"problemMatcher": "$msCompile"
60+
}
61+
]
62+
}

tests/Bridge.Tests/Bridge.Tests.fsproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
44
<TargetFramework>net10.0</TargetFramework>
5-
<GenerateProgramFile>false</GenerateProgramFile>
65
</PropertyGroup>
76
<ItemGroup>
87
<Compile Include="JsonSerializerTests.fs" />
@@ -15,9 +14,7 @@
1514
<Compile Include="Main.fs" />
1615
</ItemGroup>
1716
<ItemGroup>
18-
<PackageReference Include="Expecto" Version="10.2.3" />
19-
<PackageReference Include="YoloDev.Expecto.TestSdk" Version="0.15.6" />
20-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.7.0" />
17+
<PackageReference Include="Expecto" Version="11.0.0" />
2118
</ItemGroup>
2219
<ItemGroup>
2320
<ProjectReference Include="..\..\src\Bridge\Bridge.fsproj" />

0 commit comments

Comments
 (0)