Skip to content

Certain tests are never run, they are marked as "Content" in FSharp.Core.UnitTests #9515

Closed
@abelbraaksma

Description

@abelbraaksma

While working on some issue, I was searching for existing tests for string which landed me at OperatorsModule2.fs. However, searching for the actual test [<Test>] test.string() inside the Test Window turned up nothing.

I also noticed that the coloring was way off, and type inference did nothing. For instance notice the "unused var" color on result:

image

After some 🤯 it dawned to me and I found this:

image

In other words, it is marked as Content. Is this deliberate? It is also true for some, but not all, other files in FSharp.Core.UnitTests, which suggests that the tests are not run. Can I change it so that it actually compiles, or should I only ever do that local-only?

EDIT: it probably is deliberate, as there's a bunch of code there that doesn't compile when I enable it. I wanted to work on #7958 and possibly this #9153, but that would mean re-enabling these tests, or putting them elsewhere.

@vzarytovskii, I believe you are working on restructuring the tests, what's the best cause of action here?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions