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

Implement test helper logging #745

Merged
merged 2 commits into from
Dec 7, 2019
Merged

Implement test helper logging #745

merged 2 commits into from
Dec 7, 2019

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Nov 22, 2019

Resolves #740

The implementation is roughly similar to miragejs/ember-cli-mirage#1818. I've imported the elementToString() implementation that qunit-dom is using to describe target elements if they are not passed in as selector strings.

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.

I'm definitely in favor, left a few minor inline comments / suggestions.

vendor/qunit-test-helper-logging-option.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
addon-test-support/@ember/test-helpers/dom/-logging.ts Outdated Show resolved Hide resolved
* Logs a debug message to the console if the `testHelperLogging` query
* parameter is set.
*
* @private
Copy link
Member

Choose a reason for hiding this comment

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

FWIW, I wonder if this should actually be private. Seems like it might be nice for folks authoring custom helpers too...

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd say let's try it out and see if it works properly before we commit to making it a public API

@rwjblue
Copy link
Member

rwjblue commented Dec 6, 2019

restarted ci

@Turbo87 Turbo87 merged commit c496820 into emberjs:master Dec 7, 2019
@Turbo87 Turbo87 deleted the logging branch December 7, 2019 10:07
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.

Action logging mode
2 participants