Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Move analyzer tests to one test per file - #2362

Merged
agocke merged 4 commits into
dotnet:mainfrom
agocke:file-based-tests
Nov 13, 2021
Merged

agocke merged 4 commits into
dotnet:mainfrom
agocke:file-based-tests

Conversation

@agocke

@agocke agocke commented Nov 11, 2021

Copy link
Copy Markdown
Member

Moves away from generating Theory cases for each method in the file and
uses one Fact per test file.

Moves away from generating Theory cases for each method in the file and
uses one Fact per test file.
@agocke
agocke requested a review from marek-safar as a code owner November 11, 2021 19:53

[Theory]
[MemberData (nameof (TestCaseUtils.GetTestData), parameters: nameof (Interop))]
public void Interop (string m)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to remove the interop tests, do we? Also these are an exception to normal directory structure - the testcases are defined in nested directories so we should make sure that still works.

@vitek-karas vitek-karas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Interop tests should be kept. Otherwise looks good.

@agocke
agocke merged commit f2dd65f into dotnet:main Nov 13, 2021
@agocke
agocke deleted the file-based-tests branch November 13, 2021 00:30
agocke added a commit to agocke/linker that referenced this pull request Nov 16, 2021
Backports the file-based testing to release/6.0.2xx
agocke added a commit that referenced this pull request Nov 17, 2021
Backports the file-based testing to release/6.0.2xx
agocke added a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
Move analyzer tests to one test per file

Commit migrated from dotnet/linker@f2dd65f
agocke added a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
Backports the file-based testing to release/6.0.2xx

Commit migrated from dotnet/linker@8e8c6c7
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants