Skip to content

Tests are being silently skipped when using the release CLR #25175

@Anipik

Description

@Anipik

I tried adding tests to Pathtests.cs and pathtests.netcoreapp.cs. But these tests are not getting run. Even if you change some existing test, this change is also not getting reflected. Although it gives a compile error if there is some typo or missing semicolon

eg https://github.com/Anipik/corefx/tree/temp3
if you try running system.runtime.extensions.test for this branch, it shows that that all tests ran successfully which should not be the case due to this test.
https://github.com/Anipik/corefx/commit/070d55153a5e74dd8cc3eeac2968ab7ba694051b#diff-19631815f66f1f0ad0492da989a7463cR16

if we remove the pathtests.netcoreapp.cs from proj file, everything starts to work fine.
The possible reason behind such a behavior is that there is some limit on number of tests that can be included in one class, and we are exceeding this limit due to which these new changes are not affecting the class behavior.

Changing the class name of pathtest.netcoreapp.cs also resolves the problem.

cc @JeremyKuhne @maryamariyan @danmosemsft

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions