-
Notifications
You must be signed in to change notification settings - Fork 176
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 ability to attach notes to test results #402
Comments
|
It will console log but at the end of the console report, and with the titles of the tests which generated them, and in the JSON output for other reporters to potentially include. |
I don't really care for that feature but I'm not sure it should be a simple string. It might as well be useful to call it multiple times for different information. But then the reporters should know how to deal with it. Ideas ? |
You can call it with anything you want. It is free form reference. If you call it multiple times it will just add them to an array. I would just console log them if you specify a command flag. Otherwise just add them to the JSON output. |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
There are times when a test passes (or fails) but you want to draw attention to some other data about it. My specific need is to record performance numbers (my tests confirm performance is under n milliseconds but I also want to see the actual numbers).
In order to keep the interface and implementation simple, we can just piggyback the
done
argument:If we make
note()
returndone
we can also chain:The text was updated successfully, but these errors were encountered: