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

Add registerDebugInfoHelper API to allow customization of console output during tests. #608

Merged
merged 7 commits into from
Apr 25, 2019

Conversation

scalvert
Copy link
Contributor

This PR is a WIP of an API allowing applications and addons to add their own custom test debug info. Providing this API can allow for tailored information that can assist in debugging test issues.

@scalvert scalvert changed the title [WIP] - Adding custom test debug info API Adding custom test debug info API Mar 26, 2019
@scalvert
Copy link
Contributor Author

@rwjblue any thoughts on this?

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can you add a name field to DebugInfoHelper?

@scalvert
Copy link
Contributor Author

Done, and also simplified the interface. The conditional check can now be done inside the DebugHelper.toConsole method.

@scalvert
Copy link
Contributor Author

@rwjblue I think this is good to go once CI passes.

/**
* Registers a custom debug info helper to augment the output for test isolation validation.
*
* @public
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱 :rage4: *

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, what's wrong here? I'm confused :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OH YOU KNOW WHAT YOU DID

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hehe

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go once we fix the doc comment block

@scalvert
Copy link
Contributor Author

I'm seriously not trolling you (tempting though it is!), but there's a bunch of other modules in here that use the * block comment format that you despise so much. I'm happy to follow whatever the standard should be. Let me know.

@rwjblue rwjblue merged commit 17f4fbb into emberjs:master Apr 25, 2019
@rwjblue rwjblue changed the title Adding custom test debug info API Add registerDebugInfoHelper API to allow customization of console output during tests. Jun 17, 2019
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.

2 participants