Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

File and Line in TestAttribute is being ignored #3330

Copy link
Copy link

Description

@fredrikeriksson
Issue body actions

So yeah I gave reqnroll/Reqnroll/issues/872 a wack and I managed to populate TestAttribute with File and Line as you proposed but it wont work.
I tried to pinpoint exactly where there error is and I found that in TUnit it looks like TestAttribute's values is never selected if the previous block is selected first in these two methods:

private static (string filePath, int lineNumber) GetTestMethodSourceLocation(

and
private static (string filePath, int lineNumber) GetTestMethodSourceLocation(

I managed to get it behave correctly, at least from a gen perspective, when switching the blocks and when watching the generated files.
I couldn't make the project to work fully as so I could not run all unit tests and some fails regardless of there are changes or not.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.