Skip to content

Instantly share code, notes, and snippets.

@dotnetCarpenter
Created January 6, 2016 11:16
Show Gist options
  • Save dotnetCarpenter/7ab264c66841816d44cd to your computer and use it in GitHub Desktop.
Save dotnetCarpenter/7ab264c66841816d44cd to your computer and use it in GitHub Desktop.
https://github.com/tapjs/node-tap/issues/199 - output of running tap test/*.js -C --coverage
TAP version 13
# Subtest: test/304.js
# Subtest: 304_not_modified
ok 1 - first request should be a 200
ok 2 - second request should be a 304
ok 3 - should return a strong etag
1..3
ok 1 - 304_not_modified # time=212.235ms
# Subtest: 304_not_modified_weak
ok 1 - first request should be a 200
ok 2 - second request should be a 304
ok 3 - should return a weak etag
1..3
ok 2 - 304_not_modified_weak # time=62.669ms
# Subtest: 304_not_modified_strong_compare
ok 1 - first request should be a 200
ok 2 - second request with a strong etag should be 304
ok 3 - third request with a weak etag should be 200
1..3
ok 3 - 304_not_modified_strong_compare # time=45.067ms
# Subtest: 304_not_modified_weak_compare
ok 1 - first request should be a 200
ok 2 - second request with a strong etag should be 304
ok 3 - third request with a weak etag should be 304
1..3
ok 4 - 304_not_modified_weak_compare # time=53.8ms
1..4
# time=5618.815ms
ok 1 - test/304.js # time=6991.529ms
# Subtest: test/cache.js
# Subtest: custom cache option number
1..3
ok 1 - should not error
ok 2 - a.txt should be found
ok 3 - should be equal
ok 1 - custom cache option number # time=140.234ms
# Subtest: custom cache option string
1..3
ok 1 - should not error
ok 2 - a.txt should be found
ok 3 - should be equal
ok 2 - custom cache option string # time=53.26ms
# Subtest: custom cache option function returning a number
1..6
ok 1 - should not error
ok 2 - a.txt should be found
ok 3 - should be equal
ok 4 - should not error
ok 5 - a.txt should be found
ok 6 - should be equal
ok 3 - custom cache option function returning a number # time=33.239ms
# Subtest: custom cache option function returning a string
1..6
ok 1 - should not error
ok 2 - a.txt should be found
ok 3 - should be equal
ok 4 - should not error
ok 5 - a.txt should be found
ok 6 - should be equal
ok 4 - custom cache option function returning a string # time=43.684ms
1..4
# time=1999.522ms
ok 2 - test/cache.js # time=3352.027ms
# Subtest: test/cli.js
# Subtest: setting port via cli - default port
1..2
ok 1 - ecstatic should be started
ok 2 - a successful request from the server was made
ok 1 - setting port via cli - default port # time=2672.16ms
# Subtest: setting port via cli - custom port
1..2
ok 1 - ecstatic should be started
ok 2 - a successful request from the server was made
ok 2 - setting port via cli - custom port # time=2625.485ms
# Subtest: setting mimeTypes via cli - .types file
1..2
ok 1 - ecstatic should be started
ok 2 - a successful request from the server was made
ok 3 - setting mimeTypes via cli - .types file # time=2796.592ms
# Subtest: setting mimeTypes via cli - directly
1..4
ok 1 - ecstatic should be started
ok 2 - a successful request from the server was made
ok 3 - should not error
ok 4 - should be equal
ok 4 - setting mimeTypes via cli - directly # time=2578.975ms
1..4
# time=11388.573ms
ok 3 - test/cli.js # time=12721.707ms
# Subtest: test/content-type.js
# Subtest: default default contentType
1..3
ok 1 - should not error
ok 2 - should be equal
ok 3 - should be equal
ok 1 - default default contentType # time=151.349ms
1..1
# time=1924.633ms
ok 4 - test/content-type.js # time=3269.536ms
# Subtest: test/core-error.js
# Subtest: core
ok 1 - status code for `something non-existant`
ok 2 - status code for `404`
1..2
ok 1 - core # time=179.411ms
1..1
# time=1916.081ms
ok 5 - test/core-error.js # time=3260.397ms
# Subtest: test/core.js
# Subtest: core
ok 1 - status code for `subdir`
ok 2 - location for `subdir`
ok 3 - status code for `subdir?foo=bar`
ok 4 - location for `subdir?foo=bar`
ok 5 - status code for `%E4%B8%AD%E6%96%87`
ok 6 - location for `%E4%B8%AD%E6%96%87`
ok 7 - status code for `%E4%B8%AD%E6%96%87?%E5%A4%AB=%E5%B7%B4`
ok 8 - location for `%E4%B8%AD%E6%96%87?%E5%A4%AB=%E5%B7%B4`
ok 9 - status code for `subdir_with space`
ok 10 - location for `subdir_with space`
ok 11 - status code for `a.txt`
ok 12 - content-type for `a.txt`
ok 13 - body for `a.txt`
ok 14 - status code for `c.js`
ok 15 - content-type for `c.js`
ok 16 - body for `c.js`
ok 17 - status code for `b.txt`
ok 18 - content-type for `b.txt`
ok 19 - body for `b.txt`
ok 20 - status code for `d.js`
ok 21 - content-type for `d.js`
ok 22 - body for `d.js`
ok 23 - status code for `e.js`
ok 24 - content-type for `e.js`
ok 25 - body for `e.js`
ok 26 - status code for `subdir/e.html`
ok 27 - content-type for `subdir/e.html`
ok 28 - body for `subdir/e.html`
ok 29 - status code for `compress/foo.js`
ok 30 - body for `compress/foo.js`
ok 31 - status code for `subdir/index.html`
ok 32 - content-type for `subdir/index.html`
ok 33 - body for `subdir/index.html`
ok 34 - status code for `compress/foo_2.js`
ok 35 - status code for `404`
ok 36 - content-type for `404`
ok 37 - body for `404`
ok 38 - status code for `subdir/e?foo=bar`
ok 39 - content-type for `subdir/e?foo=bar`
ok 40 - body for `subdir/e?foo=bar`
ok 41 - status code for `subdir/e?foo=bar.ext`
ok 42 - content-type for `subdir/e?foo=bar.ext`
ok 43 - body for `subdir/e?foo=bar.ext`
ok 44 - status code for `subdir/`
ok 45 - content-type for `subdir/`
ok 46 - body for `subdir/`
ok 47 - status code for `subdir_with space/index.html`
ok 48 - content-type for `subdir_with space/index.html`
ok 49 - body for `subdir_with space/index.html`
ok 50 - status code for `something-non-existant%00.png`
ok 51 - content-type for `something-non-existant%00.png`
ok 52 - body for `something-non-existant%00.png`
ok 53 - status code for `something-non-existant`
ok 54 - content-type for `something-non-existant`
ok 55 - body for `something-non-existant`
ok 56 - status code for `emptyDir/`
ok 57 - body for `emptyDir/`
ok 58 - status code for `containsSymlink/`
ok 59 - body for `containsSymlink/`
1..59
ok 1 - core # time=392.308ms
1..1
# time=2143.483ms
ok 6 - test/core.js # time=3493.443ms
# Subtest: test/custom-content-type-file-secret.js
# Subtest: custom contentType via .types file
1..3
ok 1 - should not error
ok 2 - custom_mime_type.opml should be found
ok 3 - should be equal
ok 1 - custom contentType via .types file # time=153.64ms
1..1
# time=1837.665ms
ok 7 - test/custom-content-type-file-secret.js # time=3218.676ms
# Subtest: test/custom-content-type-file.js
# Subtest: throws when custom contentType .types file does not exist
1..1
ok 1 - bound setup
ok 1 - throws when custom contentType .types file does not exist # time=43.26ms
# Subtest: custom contentType via .types file
1..3
ok 1 - should not error
ok 2 - custom_mime_type.opml should be found
ok 3 - should be equal
ok 2 - custom contentType via .types file # time=150.76ms
1..2
# time=1939.476ms
ok 8 - test/custom-content-type-file.js # time=3314.12ms
# Subtest: test/custom-content-type.js
# Subtest: custom contentType
1..3
ok 1 - should not error
ok 2 - custom_mime_type.opml should be found
ok 3 - should be equal
ok 1 - custom contentType # time=184.468ms
1..1
# time=2379.801ms
ok 9 - test/custom-content-type.js # time=3982.581ms
# Subtest: test/default-default-ext.js
# Subtest: default defaultExt
1..3
ok 1 - should not error
ok 2 - should be equal
ok 3 - should be equal
ok 1 - default defaultExt # time=187.364ms
1..1
# time=2172.793ms
ok 10 - test/default-default-ext.js # time=3925.141ms
# Subtest: test/enotdir.js
# Subtest: should handle ENOTDIR as 404
1..3
ok 1 - should not error
ok 2 - should be equal
ok 3 - should be equal
ok 1 - should handle ENOTDIR as 404 # time=148.222ms
1..1
# time=2145.62ms
ok 11 - test/enotdir.js # time=3970.714ms
# Subtest: test/escaping.js
# Subtest: escaping special characters
ok 1 - should not error
ok 2 - should be equal
ok 3 - should be equal
1..3
ok 1 - escaping special characters # time=254.749ms
1..1
# time=2336.567ms
ok 12 - test/escaping.js # time=3814.75ms
# Subtest: test/express-error.js
# Subtest: express
ok 1 - status code for `something non-existant`
ok 2 - status code for `404`
ok 3 - cache control for `404`
1..3
ok 1 - express # time=234.572ms
1..1
# time=3643.854ms
ok 13 - test/express-error.js # time=5428.64ms
# Subtest: test/express.js
# Subtest: express
ok 1 - status code for `subdir?foo=bar`
ok 2 - status code for `subdir`
ok 3 - status code for `%E4%B8%AD%E6%96%87?%E5%A4%AB=%E5%B7%B4`
ok 4 - status code for `%E4%B8%AD%E6%96%87`
ok 5 - status code for `subdir_with space`
ok 6 - status code for `a.txt`
ok 7 - cache control for `a.txt`
ok 8 - content-type for `a.txt`
ok 9 - body for `a.txt`
ok 10 - status code for `b.txt`
ok 11 - cache control for `b.txt`
ok 12 - content-type for `b.txt`
ok 13 - body for `b.txt`
ok 14 - status code for `e.js`
ok 15 - cache control for `e.js`
ok 16 - content-type for `e.js`
ok 17 - body for `e.js`
ok 18 - status code for `c.js`
ok 19 - cache control for `c.js`
ok 20 - content-type for `c.js`
ok 21 - body for `c.js`
ok 22 - status code for `subdir/e.html`
ok 23 - cache control for `subdir/e.html`
ok 24 - content-type for `subdir/e.html`
ok 25 - body for `subdir/e.html`
ok 26 - status code for `subdir/index.html`
ok 27 - cache control for `subdir/index.html`
ok 28 - content-type for `subdir/index.html`
ok 29 - body for `subdir/index.html`
ok 30 - status code for `d.js`
ok 31 - cache control for `d.js`
ok 32 - content-type for `d.js`
ok 33 - body for `d.js`
ok 34 - status code for `compress/foo.js`
ok 35 - cache control for `compress/foo.js`
ok 36 - body for `compress/foo.js`
ok 37 - status code for `subdir_with space/index.html`
ok 38 - cache control for `subdir_with space/index.html`
ok 39 - content-type for `subdir_with space/index.html`
ok 40 - body for `subdir_with space/index.html`
ok 41 - status code for `compress/foo_2.js`
ok 42 - cache control for `compress/foo_2.js`
ok 43 - status code for `404`
ok 44 - cache control for `404`
ok 45 - content-type for `404`
ok 46 - body for `404`
ok 47 - status code for `subdir/e?foo=bar`
ok 48 - cache control for `subdir/e?foo=bar`
ok 49 - content-type for `subdir/e?foo=bar`
ok 50 - body for `subdir/e?foo=bar`
ok 51 - status code for `subdir/e?foo=bar.ext`
ok 52 - cache control for `subdir/e?foo=bar.ext`
ok 53 - content-type for `subdir/e?foo=bar.ext`
ok 54 - body for `subdir/e?foo=bar.ext`
ok 55 - status code for `subdir/`
ok 56 - cache control for `subdir/`
ok 57 - content-type for `subdir/`
ok 58 - body for `subdir/`
ok 59 - status code for `something-non-existant%00.png`
ok 60 - content-type for `something-non-existant%00.png`
ok 61 - body for `something-non-existant%00.png`
ok 62 - status code for `something-non-existant`
ok 63 - content-type for `something-non-existant`
ok 64 - body for `something-non-existant`
ok 65 - status code for `emptyDir/`
ok 66 - body for `emptyDir/`
ok 67 - status code for `containsSymlink/`
ok 68 - body for `containsSymlink/`
1..68
ok 1 - express # time=496.318ms
1..1
# time=2612.113ms
ok 14 - test/express.js # time=4052.975ms
# Subtest: test/headers.js
# Subtest: headers object
1..4
ok 1 - should not error
ok 2 - should be equal
ok 3 - should be equal
ok 4 - should be equal
ok 1 - headers object # time=217.223ms
# Subtest: header string
1..3
ok 1 - should not error
ok 2 - should be equal
ok 3 - should be equal
ok 2 - header string # time=65.064ms
# Subtest: header array
1..3
ok 1 - should not error
ok 2 - should be equal
ok 3 - should be equal
ok 3 - header array # time=34.677ms
# Subtest: H array
1..3
ok 1 - should not error
ok 2 - should be equal
ok 3 - should be equal
ok 4 - H array # time=42.682ms
1..4
# time=2515.074ms
ok 15 - test/headers.js # time=4292.937ms
# Subtest: test/html-reflection.js
# Subtest: html reflection prevented
1..0
ok 1 - html reflection prevented # time=136.801ms
1..1
# time=2021.502ms
ok 16 - test/html-reflection.js # time=3679.69ms
# Subtest: test/illegal-access-date.js
# Subtest: if-modified-since illegal access date
1..2
ok 1 - should not error
ok 2 - should be equal
ok 1 - if-modified-since illegal access date # time=155.372ms
1..1
# time=1938.711ms
ok 17 - test/illegal-access-date.js # time=3369.868ms
# Subtest: test/malformed-dir.js
# Subtest: malformed showdir uri
1..2
ok 1 - should not error
ok 2 - should be equal
ok 1 - malformed showdir uri # time=141.344ms
1..1
# time=1946.157ms
ok 18 - test/malformed-dir.js # time=3418.989ms
# Subtest: test/malformed.js
# Subtest: malformed uri
1..2
ok 1 - should not error
ok 2 - should be equal
ok 1 - malformed uri # time=146.104ms
1..1
# time=1878.27ms
ok 19 - test/malformed.js # time=3299.435ms
# Subtest: test/mime.js
# Subtest: mime package lookup
1..4
ok 1 - should be equal
ok 2 - should be equal
ok 3 - should be equal
ok 4 - should be equal
ok 1 - mime package lookup # time=35.335ms
# Subtest: custom definition of mime-type with the mime package
1..1
ok 1 - should be equal
ok 2 - custom definition of mime-type with the mime package # time=19.981ms
# Subtest: custom definition of mime-type with a .types file
1..2
ok 1 - should be equal
ok 2 - bound
ok 3 - custom definition of mime-type with a .types file # time=10.13ms
1..3
# time=187.21ms
ok 20 - test/mime.js # time=1533.545ms
# Subtest: test/process-env-port.js
# Subtest: sane port
1..2
ok 1 - ecstatic should be started
ok 2 - a successful request from the server was made
ok 1 - sane port # time=2488.842ms
# Subtest: floating point port
1..2
ok 1 - ecstatic should be started
ok 2 - a successful request from the server was made
ok 2 - floating point port # time=2468.624ms
# Subtest: insane port: 1023
1..2
ok 1 - ecstatic should be started
ok 2 - a successful request from the server was made
ok 3 - insane port: 1023 # time=2443.657ms
# Subtest: insane port: 65537
1..2
ok 1 - ecstatic should be started
ok 2 - a successful request from the server was made
ok 4 - insane port: 65537 # time=2541.195ms
# Subtest: insane port: Infinity
1..2
ok 1 - ecstatic should be started
ok 2 - a successful request from the server was made
ok 5 - insane port: Infinity # time=2669.606ms
# Subtest: insane port: wow
1..2
ok 1 - ecstatic should be started
ok 2 - a successful request from the server was made
ok 6 - insane port: wow # time=2715.116ms
1..6
# time=16015.359ms
ok 21 - test/process-env-port.js # time=17337.807ms
# Subtest: test/range.js
# Subtest: range
1..4
ok 1 - should not error
ok 2 - partial content status code
ok 3 - should be equal
ok 4 - should be equal
ok 1 - range # time=144.427ms
# Subtest: range past the end
1..4
ok 1 - should not error
ok 2 - partial content status code
ok 3 - should be equal
ok 4 - should be equal
ok 2 - range past the end # time=79.676ms
# Subtest: NaN range
1..3
ok 1 - should not error
ok 2 - range error status code
ok 3 - should be equal
ok 3 - NaN range # time=55.589ms
# Subtest: flipped range
1..3
ok 1 - should not error
ok 2 - range error status code
ok 3 - should be equal
ok 4 - flipped range # time=33.236ms
# Subtest: partial range
1..5
ok 1 - should not error
ok 2 - partial content status code
ok 3 - should be equal
ok 4 - should be equal
ok 5 - should be equal
ok 5 - partial range # time=156.859ms
1..5
# time=2564.263ms
ok 22 - test/range.js # time=4266.486ms
# Subtest: test/server-header.js
# Subtest: serverHeader should exist
1..2
ok 1 - should not error
ok 2 - should be equal
ok 1 - serverHeader should exist # time=182.616ms
# Subtest: serverHeader should not exist
1..2
ok 1 - should not error
ok 2 - should be equal
ok 2 - serverHeader should not exist # time=55.783ms
1..2
# time=1969.856ms
ok 23 - test/server-header.js # time=3491.535ms
# Subtest: test/showdir-href-encoding.js
# Subtest: url encoding in href
ok 1 - We found the right href
1..1
ok 1 - url encoding in href # time=171.339ms
1..1
# time=1956.032ms
ok 24 - test/showdir-href-encoding.js # time=3407.127ms
# Subtest: test/showdir-pathname-encoding.js
1..0 # Windows is allergic to < in path names
# time=1695.72ms
ok 25 - test/showdir-pathname-encoding.js # SKIP Windows is allergic to < in path names
# Subtest: test/showdir-search-encoding.js
# Subtest: directory listing with query string specified
ok 1 - We found the encoded href
ok 2 - We didn't find the unencoded query string value
1..2
ok 1 - directory listing with query string specified # time=176.903ms
1..1
# time=1865.955ms
ok 26 - test/showdir-search-encoding.js # time=3248.46ms
# Subtest: test/showdir-with-spaces.js
# Subtest: directory listing when directory name contains spaces
ok 1 - We found the right href
1..1
ok 1 - directory listing when directory name contains spaces # time=201.209ms
1..1
# time=2014.063ms
ok 27 - test/showdir-with-spaces.js # time=3407.85ms
1..27
# time=122721.905ms
---------------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
---------------------|----------|----------|----------|----------|----------------|
./lib\ | 81.76 | 72.73 | 66.67 | 81.65 | |
ecstatic.js | 81.76 | 72.73 | 66.67 | 81.65 |... 363,366,368 |
./lib\ecstatic\ | 78.7 | 68.97 | 88.64 | 79.52 | |
etag.js | 100 | 100 | 100 | 100 | |
opts.js | 86.05 | 84.62 | 100 | 86.9 |... ,95,155,156 |
showdir.js | 78.57 | 64.81 | 88.89 | 80 |... 220,221,223 |
status-handlers.js | 60.98 | 33.33 | 57.14 | 60.98 |... 64,65,66,81 |
---------------------|----------|----------|----------|----------|----------------|
All files | 80 | 70.83 | 82.26 | 80.43 | |
---------------------|----------|----------|----------|----------|----------------|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment