[CSHARP-3063] Modify build.cake to support running tests for just one selected target framework Created: 16/Apr/20  Updated: 28/Oct/23  Resolved: 20/Apr/20

Status: Closed
Project: C# Driver
Component/s: Testing
Affects Version/s: 2.10.3
Fix Version/s: 2.11.0

Type: Task Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

It takes a long time to run the full C# driver test suite. Part of the reason is that the test suite is run 3 times, once for each target framework.

Add new targets to build.cake to support running tests against just one target framework.

.\build.ps -target testnet452
.\build.ps -target testnetstandard15
.\build.ps -target testnetstandard20

Note: the target frameworks are the ones the driver targets. The test projects actually target a suitable version of .NET Core to run the tests for the netstandard versions of the driver.

This will be useful during development to run the full test suite in 1/3 the time by selecting which target framework to test.



 Comments   
Comment by Githook User [ 20/Apr/20 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-3063: Modify build.cake to support running tests for just one selected target framework.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/5edca6c379f113dedb4b57b8611d5d1a2ba15692

Generated at Wed Feb 07 21:44:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.