Coder Social home page Coder Social logo

Unit test failures about sarif-sdk HOT 2 CLOSED

microsoft avatar microsoft commented on May 18, 2024
Unit test failures

from sarif-sdk.

Comments (2)

michaelcfanning avatar michaelcfanning commented on May 18, 2024

There's only a single test failure in this output. The other output is due to the unit tests comprehensive negative condition testing. It's not easy to extract relevant information for real failures, we should try to clean it up. If you examine the final test summary, you'll see the actual # of failures. Search on [FAIL] to get the real thing.

Microsoft.CodeAnalysis.Sarif.Driver.Sdk.AnalyzeCommandBaseTests.UnauthorizedAccessExceptionCreatingSarifLog [FAIL]

Sarif.Driver.UnitTests Total: 17, Errors: 0, Failed: 1, Skipped: 0, Time: 1.107s

The problem here is likely that you are running with admin privileges, which is allowing you to create log files where tests expect to get blocked. We can change the test code to provide a more reliable mechanism to raise UnauthorizedAccessException

from sarif-sdk.

 avatar commented on May 18, 2024

@michaelcfanning fixed this in #85.

(Michael, GitHub didn't auto-resolve it because you typoed the title of the PR ("Resolves #181" instead of "Resolves #81").

from sarif-sdk.

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.