@@ -287,13 +287,16 @@ bokorServer/
287
287
```
288
288
289
289
## Logs
290
- ` ====[ cache miss ]==== `
290
+ Bokor uses [ Bunyan] ( https://github.com/trentm/node-bunyan ) for logging. Bunyan is a simple and fast JSON logging library.
291
+ Bunyan has many features. One of them allows pretty-printing of the log. We show this feature in the below [ Demo From Source] ( #demo-from-source )
291
292
292
- ❤️ If the request does not find a prerecorded response it will log cache miss in the color red.
293
+ ` ( cache= miss) `
293
294
294
- ` ====[ cache hit ]==== `
295
+ ❤️ If the request does not find a prerecorded response it will log cache miss.
295
296
296
- 💚 If the request finds a prerecorded response it will log cache hit in the color green.
297
+ ` (cache=hit) `
298
+
299
+ 💚 If the request finds a prerecorded response it will log cache hit.
297
300
298
301
## Demo from Source
299
302
Follow the below steps to run the Bokor Demo.
@@ -303,7 +306,7 @@ $ git clone https://github.com/Nike-Inc/bokor.git
303
306
$ cd bokor
304
307
$ npm install
305
308
$ cd examples/source_example/
306
- $ node server.js
309
+ $ node server.js | ../../node_modules/.bin/bunyan
307
310
```
308
311
309
312
Record a response
@@ -320,20 +323,20 @@ $ curl http://localhost:7777/users/jimmyeisenhauer
320
323
## Tests
321
324
322
325
```
323
- $ npm test
326
+ $ npm run coverage
324
327
```
325
328
326
329
## FAQ
327
330
### Where did the name Bokor come from?
328
331
It is a long story, but one of my favorite quotes is:
329
332
330
- #####“any sufficiently advanced technology is indistinguishable from magic.”
333
+ ##### “any sufficiently advanced technology is indistinguishable from magic.”
331
334
332
335
-arthur c. clarke
333
336
334
337
So of course I penned a similar quote around test automation.
335
338
336
- #####“software tests that unexplainably pass or fail are indistinguishable from voodoo.”
339
+ ##### “software tests that unexplainably pass or fail are indistinguishable from voodoo.”
337
340
-james r. eisenhauer
338
341
339
342
And a Bokor is a voodoo sorcerer for hire who are said to serve the loa 'with both hands', practicing for both good and evil.
0 commit comments