GithubHelp home page GithubHelp logo

Failing and ignored tests about msbuild HOT 3 CLOSED

dotnet avatar dotnet commented on July 17, 2024
Failing and ignored tests

from msbuild.

Comments (3)

am11 avatar am11 commented on July 17, 2024

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.

barbosatek avatar barbosatek commented on July 17, 2024

Seems some of the tests are failing because of threading issues when running all the tests.

image

After running only the 4 failing tests, only one fails:

image

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.

AndyGerlicher avatar AndyGerlicher commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.