Skip to content
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

Provide the adequate runner class in a message #113

Closed
skateman opened this issue Nov 20, 2015 · 4 comments
Closed

Provide the adequate runner class in a message #113

skateman opened this issue Nov 20, 2015 · 4 comments

Comments

@skateman
Copy link
Contributor

Hi!

I need to have the runner class name inside each report message for a personal project. The simplest solution is to add an extra runner argument to the constructor of the Message class, but this requires to adjust all the existing runners. An other (very ugly) solution is to somehow parse the backtrace in the Message's constructor and get the caller class from it.

Which solution sounds better for you? Would you accept a PR?

@mmozuras
Copy link
Member

The simplest solution is to add an extra runner argument to the constructor of the Message class, but this requires to adjust all the existing runners.

I think that's the way to go and I would accept a PR 😄.

@dwradcliffe
Copy link

I need this also. Any progress?

@skateman
Copy link
Contributor Author

skateman commented Jan 4, 2016

Umm, holidays :) I'll do it tomorrow ;)

@dwradcliffe
Copy link

Awesome :)

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

3 participants