-
Notifications
You must be signed in to change notification settings - Fork 280
Add status codes to test ID and Dredd output #868
Add status codes to test ID and Dredd output #868
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! I think this is generally a good idea. See my comments.
The current format of the transaction ID is part of many tests, so those will need to be changed first. That's why tests on both Windows (AppVeyor) and Linux (Travis CI) failed.
I also suggest to update the example value for the transaction ID in Dredd's docs: https://dredd.readthedocs.io/en/latest/data-structures.html#transaction-object
package.json
Outdated
@@ -12,6 +12,7 @@ | |||
"scripts": { | |||
"lint": "conventional-changelog-lint --from=master && coffeelint src", | |||
"build": "coffee -b -c -o lib/ src/", | |||
"watch": "coffee -w -b -c -o lib/ src/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was reading #867 before this one, hence my comment there. The only important part is that I'd suggest the name of the command to be build:watch
instead of watch
.
package.json
Outdated
@@ -35,7 +36,7 @@ | |||
"coffee-script": "^1.12.5", | |||
"colors": "^1.1.2", | |||
"cross-spawn": "^5.0.1", | |||
"dredd-transactions": "^4.3.0", | |||
"dredd-transactions": "4.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I thought I linked the issue. Currently the latest version of dredd-transactions
has an issue introduced by one of its dependencies - apiaryio/dredd-transactions#93
Yes, but that's better solved by releasing a fix. One fix is already out, the other one will follow shortly.
…On 18 Aug 2017, 17:03 +0200, Anthony Davis ***@***.***>, wrote:
@antkazam commented on this pull request.
In package.json:
> @@ -35,7 +36,7 @@
"coffee-script": "^1.12.5",
"colors": "^1.1.2",
"cross-spawn": "^5.0.1",
- "dredd-transactions": "^4.3.0",
+ "dredd-transactions": "4.2.0",
Sorry I thought I linked the issue. Currently the latest version of dredd-transactions has an issue introduced by one of its dependencies - apiaryio/dredd-transactions#93
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
2c2c2e5
to
5dcf724
Compare
@honzajavorek I've made the changes you requested - but unfortunately the Travis CI build failed - I am trying to reproduce but having no success. The failing tests are here and here if you have any tips for how to debug. |
@antkazam I see all builds passing on the last commit. I guess you figured it out then? I'll get back shortly to do review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 👍 Thanks so much! ✨
I'm ready to merge this. I'll give you some time to figure out the email associations if you want (if you want to amend the previous commits and to change their email, you may want to rebase the branch before it gets merged) and possibly tomorrow I think I'll merge this 🚀
This needs to wait until #872 gets fixed. We need to release a fix in patch so it auto-propagates to installations the same way as did the bug. Adding a feature would close the way to auto-propagate by bumping the minor version number. |
Thanks @honzajavorek I was out of town until now. Really appreciate your help. |
@antkazam Thanks for the PR! 👍 |
🚀 Why this change?
The primary reason for this change is that test IDs are non-unique and that makes test output hard to understand. This PR adds the
(###)
to the transaction ID so that a 200 is distinctly different from a 204, 401, 404, etc...📝 Related issues and Pull Requests
✅ What didn't I forget?
npm run lint