Comments (3)
My results are varying. Only one assertion fails: ToolLocationHelper_Tests.cs#L804.
However, there are 227 skipped tests, which is due to the [Ignore]
attribute, which explicitly disables a test case:
https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.ignoreattribute.aspx.
Ex: ProjectRootElementCache_Tests.cs#L108:
[Ignore] // "This test seems to be flaky depending on when garbage collection happened"
from msbuild.
Seems some of the tests are failing because of threading issues when running all the tests.
After running only the 4 failing tests, only one fails:
Which actually fails because it's expecting my enviroment to be Windows 10 rather than Wondows 8.1
Test Name: GetPathToDotNetFrameworkSdk
Test FullName: Microsoft.Build.UnitTests.ToolLocationHelper_Tests.GetPathToDotNetFrameworkSdk
Test Source: c:\Users\v-hobarb\Documents\GitHub\msbuild\src\Utilities\UnitTests\ToolLocationHelper_Tests.cs : line 750
Test Outcome: Failed
Test Duration: 0:00:00.0298146
Result Message: Assert.AreEqual failed. Expected:<C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\>. Actual:<C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\>.
Result StackTrace: at Microsoft.Build.UnitTests.ToolLocationHelper_Tests.GetPathToDotNetFrameworkSdk() in c:\Users\v-hobarb\Documents\GitHub\msbuild\src\Utilities\UnitTests\ToolLocationHelper_Tests.cs:line 804
Same results when running them with ReSharper
from msbuild.
All the tests that are not marked with [Ignore] should be working. There are quite a few I had to disable migrating it out of our internal environment though. Most of those are tagged with a comment like // Ignore: Test requires installed toolset.
. Ideally all the tests should be enabled (or deleted if they don't apply anymore), so we are definitely open to PR for fixes there :).
The biggest difficulty was that the tests often targeted the version of MSBuild that is installed on your machine in the GAC. We had a cmd file to update the machine so that you would be (hopefully) testing what you just built and not the retail version, but this is definitely not ideal. This has been around and not changed for ages, so we couldn't get to all of them. And without doing some sort of signing that method doesn't work anyway.
If you do have specific issues I'd like to see more information and if it repros running the test by itself or not. The machine I used for the majority of the testing was Windows 10 Server (9926) and Visual Studio 2015 (CTP6).
from msbuild.
Related Issues (20)
- Vet behavior change around StringCache removal HOT 1
- [Bug]: Strange behavior evaluating properties in <UsingTask/> HOT 4
- [Bug]: `dotnet workload restore` uniquely emits warning MSB3982: EnableDynamicPlatformResolution ... Platforms not set HOT 9
- Determine behavior of EvaluationAnalysisScope setting HOT 1
- [Bug][BuildCheck] BuildCheck tests are broken in main HOT 1
- [BuildCheck Suggestion]: Flag usage of the Warning or Error Tasks without an associated Code
- [Bug]: Custom analyzer isn't invoked
- BuildCheck - first batch of built-in checks [NET9.0]
- [Kitten] Kitten work - August/2024
- [dnceng-bot] Branch `msbuild/exp/9303-use-load-with-fallback2` can't be mirrored to Azdo fast forward branch HOT 2
- Turn on Perfstar
- Add BuildCheckAcquisitionEventArgs to BinLog
- [BuildCheck Suggestion]: Enable static graph
- [Performance]: BuildEventArgsWriter.WriteProjectItems spends a large % CPU time on CopyOnWriteDictionary
- [Bug]: MSBuild packages 17.3.4 not published on nuget.org HOT 4
- MuxLogger discrepancy introduced by new event HOT 1
- [Unhandled Exception]: double quote in path results in System.ArgumentException: Illegal characters in path HOT 1
- BuildCheck suggestions do not start with code HOT 1
- Query and add info about SAC being in evaluation mode
- Under SDK version >= 8.0.300 many NuGet-related properties are no longer set during evaluation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msbuild.