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)
- Remove code repetition in EventSourceSink.cs
- [Bug]: When Publishing with .sln, MSBuild doesn't use `BaseOutputPath` HOT 1
- Release 17.11
- [Kitten] Fix binskim warnings in msbuild pipeline HOT 3
- [Bug]: Running a specific target which depends on ResolveReferences fails when TargetFrameworks is specified HOT 4
- Visual Studio 2022 17.10 fails to load csproj - error : The "Target" name is reserved, and cannot be used HOT 3
- Is the double-checked locking pattern in BuildManager correct?
- [Bug]: Parsing `-property:Configuration` with Command-line comments HOT 5
- [BuildCkeck] No warning or error message visible when replaying binlog of an analyzed build
- [Feature Request]: Support building the new Visual Studio solution file format (.slnx) HOT 7
- [Bug]: HOT 2
- [Bug]: CustomAnalyzerTest test fails in the CI pipeline HOT 2
- Retarget to .NET 9
- [Bug]: Can't use contained classes of NuGet Package Microsoft.Build when added as GlobalPackageReference in a Directory.Packages.props file HOT 2
- Investigate possible ToolTask hang HOT 1
- [Bug]: Net472 Service Fabric project with .Net 8 project reference broken in latest msbuild HOT 2
- Create tests for ConfigurationContext
- [dnceng-bot] Branch `msbuild/vs17.10` can't be mirrored to Azdo fast forward branch HOT 1
- Rework the approach to bootstrap HOT 3
- [Feature Request]: Improvements to the Copy task warnings in Terminal Logger HOT 3
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.