- https://twitter.com/ntmlk
- https://app.apiary.io/curltraceparser/editor
- https://www.google.cz/search?q=cucumber&oq=cucumber&aqs=chrome.0.57j59j61j59l2j60.3298j0&sourceid=chrome&ie=UTF-8
- http://en.wikipedia.org/wiki/Behavior-driven_development
- http://visionmedia.github.io/mocha/
- http://pivotal.github.io/jasmine/
- https://github.com/cucumber/cucumber-js
- http://cukes.info/
- http://cukes.info/platforms.html
- https://groups.google.com/forum/#!forum/cukes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== Info: About to connect() to httpbin.org port 80 (#0) | |
== Info: Trying 54.225.138.124... | |
== Info: connected | |
== Info: Connected to httpbin.org (54.225.138.124) port 80 (#0) | |
=> Send header, 149 bytes (0x95) | |
0000: 47 45 54 20 2f 68 65 61 64 65 72 73 20 48 54 54 GET /headers HTT | |
0010: 50 2f 31 2e 31 0d 0a 55 73 65 72 2d 41 67 65 6e P/1.1..User-Agen | |
0020: 74 3a 20 63 75 72 6c 2f 37 2e 32 34 2e 30 20 28 t: curl/7.24.0 ( | |
0030: 78 38 36 5f 36 34 2d 61 70 70 6c 65 2d 64 61 72 x86_64-apple-dar | |
0040: 77 69 6e 31 32 2e 30 29 20 6c 69 62 63 75 72 6c win12.0) libcurl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kolotoc:~ netmilk$ curl --header "Content-Type: application/json" \ | |
--silent --request POST \ | |
--data-binary "{ \"product\":\"1AB23ORM\", \"quantity\": 2 }" \ | |
"http://curltraceparser.apiary.io/shopping-cart" \ | |
--trace - | \ | |
curl-trace-parser | |
> POST /shopping-cart HTTP/1.1 | |
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5 | |
> Host: curltraceparser.apiary.io | |
> Accept: */* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install -g curl-trace-parser | |
$ brew install --HEAD \ | |
https://raw.github.com/apiaryio/snowcrash/master/tools/homebrew/snowcrash.rb | |
$ curl --trace - --header "Content-Type: application/json" \ | |
--request POST \ | |
--data-binary "{ \"product\":\"1AB23ORM\", \"quantity\": 2 }" \ | |
"http://curltraceparser.apiary.io/shopping-cart" \ | |
| curl-trace-parser --blueprint \ | |
| snowcrash | |
name: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: node_js | |
node_js: | |
- 0.8 | |
- 0.10 | |
before_install: | |
- npm install -g dredd | |
script: ./scripts/test | |
notifications: | |
email: | |
recipients: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
./node_modules/coffee-script/bin/coffee app.coffee & | |
sleep 1 | |
PID=$! | |
dredd apiary.apib http://localhost:3000/ | |
RESULT=$? | |
kill -9 $PID | |
exit $RESULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
./node_modules/coffee-script/bin/coffee app.coffee & | |
sleep 5 | |
PID=$! | |
dredd apiary.apib http://localhost:3000/ | |
RESULT=$? | |
kill -9 $PID | |
exit $RESULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: node_js | |
node_js: | |
- 0.8 | |
- 0.10 | |
before_install: | |
- npm install -g dredd | |
script: ./scripts/test | |
services: | |
- mongodb | |
before_script: |
OlderNewer