Skip to content

Include any class with methods with attributes in RunTests#58259

Merged
RikkiGibson merged 2 commits intomainfrom
runtests-internal-methods
Dec 11, 2021
Merged

Include any class with methods with attributes in RunTests#58259
RikkiGibson merged 2 commits intomainfrom
runtests-internal-methods

Conversation

@RikkiGibson
Copy link
Copy Markdown
Member

This resolves the issue where ExternalAccess.Razor tests don't run in CI. RunTests assumed that only public methods could be test methods, but it turns out internal methods can be too.

FYI @pawchen @JoeRobich

@ghost ghost added the Area-Infrastructure label Dec 10, 2021
@RikkiGibson
Copy link
Copy Markdown
Member Author

It turns out that test methods are allowed to have any accessibility and we will still run them. So I think the change in this PR is the right one to make.

@RikkiGibson RikkiGibson marked this pull request as ready for review December 10, 2021 21:45
@RikkiGibson RikkiGibson requested a review from a team as a code owner December 10, 2021 21:45
@RikkiGibson
Copy link
Copy Markdown
Member Author

Turns out the tests we weren't running are now failing :)

Filed #58263

@RikkiGibson RikkiGibson merged commit 63ce612 into main Dec 11, 2021
@ghost ghost added this to the Next milestone Dec 11, 2021
@RikkiGibson RikkiGibson deleted the runtests-internal-methods branch December 11, 2021 04:34
@Cosifne Cosifne modified the milestones: Next, 17.1.P3 Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants