Skip to content

Commit bc7925f

Browse files
authored
Remove BuildTests target (#3498)
* Issue #3147 - Can't build SqlClient package - Fixed case-sensitive filenames. - Fixed bad dotnet command when generating NotSupported API. * Issue #3147 - Can't build SqlClient package - Removed 'BuildTests' target from build.proj. - Corrected BUILDGUIDE related to building and running tests. * Discussion #3147 - Can't build SqlClient package - Removed unused and outdated scripts.
1 parent 0c0ed59 commit bc7925f

File tree

9 files changed

+19
-206
lines changed

9 files changed

+19
-206
lines changed

BUILDGUIDE.md

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ Once the environment is setup properly, execute the desired set of commands belo
2222
|`BuildNetCore`|Builds the .NET driver for all target frameworks.|
2323
|`BuildNetCoreAllOS`|Builds the .NET driver for all target frameworks and operating systems.|
2424
|`BuildNetFx`|Builds the .NET Framework driver for all target frameworks.|
25-
|`BuildTests`|Builds tests for the .NET and .NET Framework drivers.|
2625
|`BuildTestsNetCore`|Builds tests for the .NET driver.|
2726
|`BuildTestsNetFx`|Builds tests for the .NET Framework driver.|
2827
|`Clean`|Cleans generated files.|
2928
|`Restore`|Restores Nuget packages.|
30-
|`RunTests`|Runs the functional and manual tests for the .NET Framework and .NET drivers|
29+
|`RunTests`|Runs the unit, functional, and manual tests for the .NET Framework and .NET drivers|
30+
|`RunUnitTests`|Runs just the unit tests for the .NET Framework and .NET drivers|
3131
|`RunFunctionalTests`|Runs just the functional tests for the .NET Framework and .NET drivers|
3232
|`RunManualTests`|Runs just the manual tests for the .NET Framework and .NET drivers|
3333
|`BuildAkv`|Builds the Azure Key Vault Provider package for all supported platforms.|
@@ -51,39 +51,35 @@ Using the default configuration and running all tests:
5151

5252
```bash
5353
msbuild
54-
msbuild -t:BuildTests
54+
msbuild -t:BuildTestsNetFx -p:TF=net462
55+
msbuild -t:BuildTestsNetCore
5556
msbuild -t:RunTests
5657
```
5758

58-
Targeting .NET Framework (or any specific supported version):
59-
60-
```bash
61-
msbuild -p:TF=net462
62-
msbuild -t:BuildTests -p:TF=net462
63-
msbuild -t:RunTests -p:TF=net462
64-
```
65-
6659
Using the Release configuration:
6760

6861
```bash
6962
msbuild -p:configuration=Release
70-
msbuild -t:BuildTests -p:configuration=Release
63+
msbuild -t:BuildTestsNetFx -p:TF=net462 -p:configuration=Release
64+
msbuild -t:BuildTestsNetCore -p:configuration=Release
7165
msbuild -t:RunTests -p:configuration=Release
7266
```
7367

74-
Running only the functional tests:
68+
Running only the unit tests:
7569

7670
```bash
7771
msbuild
78-
msbuild -t:BuildTests
79-
msbuild -t:RunFunctionalTests
72+
msbuild -t:BuildTestsNetFx -p:TF=net462
73+
msbuild -t:BuildTestsNetCore
74+
msbuild -t:RunUnitTests
8075
```
8176

8277
Using a specific dotnet version/architecture:
8378

8479
```bash
8580
msbuild -p:configuration=Release
86-
msbuild -t:BuildTests -p:configuration=Release
81+
msbuild -t:BuildTestsNetFx -p:TF=net462 -p:configuration=Release
82+
msbuild -t:BuildTestsNetCore -p:configuration=Release
8783
msbuild -t:RunTests -p:configuration=Release -p:DotnetPath=C:\net8-win-x86\
8884
```
8985

@@ -224,10 +220,10 @@ msbuild -t:BuildTestsNetCore -p:ReferenceType=Package
224220
For .NET Framework, below reference types are supported:
225221

226222
```bash
227-
msbuild -t:BuildTestsNetFx -p:ReferenceType=Project
223+
msbuild -t:BuildTestsNetFx -p:TF=net462 -p:ReferenceType=Project
228224
# Default setting uses Project Reference.
229225

230-
msbuild -t:BuildTestsNetFx -p:ReferenceType=Package
226+
msbuild -t:BuildTestsNetFx -p:TF=net462 -p:ReferenceType=Package
231227
```
232228

233229
### Running Tests with Reference Type
@@ -245,12 +241,12 @@ Tests can be built and run with custom Target Frameworks. See the below examples
245241
### Building Tests with custom target framework
246242

247243
```bash
248-
msbuild -t:BuildTestsNetFx -p:TargetNetFxVersion=net462
244+
msbuild -t:BuildTestsNetFx -p:TF=net462
249245
# Build the tests for custom .NET Framework target
250246
```
251247

252248
```bash
253-
msbuild -t:BuildTestsNetCore -p:TargetNetCoreVersion=net8.0
249+
msbuild -t:BuildTestsNetCore -p:TF=net8.0
254250
# Build the tests for custom .NET target
255251
```
256252

RunPackageReferenceTests.cmd

Lines changed: 0 additions & 65 deletions
This file was deleted.

RunProjectReferenceTests.cmd

Lines changed: 0 additions & 54 deletions
This file was deleted.

RunTests.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)