Skip to content

[💡 Feature]: Add spec file name to the prefix of log file names #12444

@WillBrock

Description

@WillBrock

Is your feature request related to a problem?

When you have a lot of files in a test run it can be hard to find what log file applies to what test. You can grep the files to get what you're looking for but having the test file name be in the log file name could help.

Describe the solution you'd like.

Log files are outputted like the following format:

wdio-0-0.log
wdio-0-123-chromedriver.log
wdio-0-123-browser.log

There is no distinction on what tests those logs are for without looking inside the files. If the test file name is test-something.ts then the logs could look something like:

test-something-0-0.log
test-something-0-123-chromedriver.log
test-something-0-123-browser.log

This could also be a flag you set to have the log files outputted this way.

Describe alternatives you've considered.

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Idea 💡A new feature ideahelp wantedIssues that are free to take by anyone interested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions