Skip to content

[F#] Using MSTest with MTP doesn't provide source information #5469

Closed

Description

Create an MSTest F# test project with Microsoft.Testing.Platform. Test Explorer won't show source information for the test.

This is because VSTestBridge disables source collection, and the ManagedType/ManagedMethod properties don't work for F#.

Activity

  1. added
    area/mtp-vstest-bridge
    area/mstest
    on Apr 15, 2025
  2. Youssef1313 commented on Apr 22, 2025

    @Youssef1313
    MemberAuthor

    I think Test Explorer is supposed to pass CollectSourceInformation true but is not.

    Osvaldo Calles (@ocallesp) Can you please verify how that part behaves today in TE?

  3. Youssef1313 commented on Apr 22, 2025

    @Youssef1313
    MemberAuthor

    I double checked again.

    Test Explorer expects VSTest.TestCase.LineNumber, but the VSTestBridge adds TestFileLocationProperty normally which is converted to location.file and location.line-[start|end]. We should unify.

  4. Youssef1313 commented on Apr 28, 2025

    @Youssef1313
    MemberAuthor

    MSTest will no longer be affected as we are no longer using vstestProvider in #5409.

    This will affect NUnit still, and possibly Expecto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/mstestarea/mtp-vstest-bridge

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions