Skip to content

Add option to provide location information when listing tests #5601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
adam-fowler opened this issue Jun 17, 2022 · 1 comment
Closed

Add option to provide location information when listing tests #5601

adam-fowler opened this issue Jun 17, 2022 · 1 comment
Assignees

Comments

@adam-fowler
Copy link

Description

When you run swift --list-tests it just provides a list of tests. It would be really useful for the Visual Studio Code swift extension if we could have an option to output more information about the tests, specifically which file they are in and location within that file.

eg
swift --list-tests --extended could return a JSON file

[
   {
        "name": "MyModuleTests/TestName/testName", 
        "file": "Tests/MyModuleTests/TestName.swift",
        "line": 45
    },
    {
    ...
    },
]

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version && uname -a)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants