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 module and test-name information to callbacks #296

Closed
vivin opened this issue Aug 9, 2012 · 0 comments
Closed

Add module and test-name information to callbacks #296

vivin opened this issue Aug 9, 2012 · 0 comments

Comments

@vivin
Copy link
Contributor

vivin commented Aug 9, 2012

I think it would be useful to add the module and test-name information to callbacks.:

  • QUnit.log currently only reports the following information actual, expected, message, result, and source. I think it would be useful to add module and testName to this.
  • QUnit.moduleDone and QUnit.moduleStart don't report any information regarding the actual module that has started or finished. I think it would be useful to pass that information to the callback.
  • QUnit.testDone and QUnit.testStart don't report any information regarding the actual test that has started or stopped. I think it would be useful to pass that information to the callback.

I apologize if this change has already been made, or if this information can be retrieved some other way.

@vivin vivin mentioned this issue Aug 9, 2012
vivin added a commit to vivin/qunit that referenced this issue Aug 16, 2012
Adds module and test name to the information that is returned in the callback provided to QUnit.log(Function). I also modified existing tests, and added new tests that checks for the existence of this information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants