-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Travis service tests from tutorial #1531
Travis service tests from tutorial #1531
Conversation
Generated by 🚫 dangerJS |
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.
One minor comment. Looking back through the history I can't see any good reason for this - it looks like probably an oversight that this wasn't included.
service-tests/travis.js
Outdated
t.create('connection error') | ||
.get('/foo/bar.json') | ||
.networkOff() | ||
.expectJSON({ name: 'build', value: 'invalid' }); |
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.
usually we'd use 'inaccessible' for this case and 'invalid' when the response is malformed
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 good to merge when this is addressed!
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 @chris48s, great idea. @paulmelnikow done
The first version of the tutorial was written before the service tests. I never noticed they included code for tests that weren't added to the code base! |
In the next PR I would like to use great |
Service tests were introduced in #937 by @paulmelnikow. The tutorial is based on service tests of Travis CI, we do not have them in out codebase. Do you know why? I think it would be good idea to add them.