Skip to content

Instantly share code, notes, and snippets.

@dotnetCarpenter
Created January 5, 2016 21:54
Show Gist options
  • Save dotnetCarpenter/4e929a16751449339b07 to your computer and use it in GitHub Desktop.
Save dotnetCarpenter/4e929a16751449339b07 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=224.058ms
# 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=75.827ms
# 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=61.305ms
# 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=55.093ms
1..4
# time=1223.293ms
ok 1 - test/304.js # time=1992.006ms
# 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=153.142ms
# 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=59.177ms
# 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=40.617ms
# 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=49.465ms
1..4
# time=1208.723ms
ok 2 - test/cache.js # time=1951.816ms
# 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=845.656ms
# 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=776.411ms
# 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=721.752ms
# 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=736.062ms
1..4
# time=3862.928ms
ok 3 - test/cli.js # time=4664.061ms
# 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=159.637ms
1..1
# time=1002.118ms
ok 4 - test/content-type.js # time=1741.682ms
# 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=199.438ms
1..1
# time=1049.256ms
ok 5 - test/core-error.js # time=1818.477ms
# Subtest: test/core.js
# Subtest: core
ok 1 - status code for `subdir?foo=bar`
ok 2 - location for `subdir?foo=bar`
ok 3 - status code for `%E4%B8%AD%E6%96%87`
ok 4 - location for `%E4%B8%AD%E6%96%87`
ok 5 - status code for `%E4%B8%AD%E6%96%87?%E5%A4%AB=%E5%B7%B4`
ok 6 - location for `%E4%B8%AD%E6%96%87?%E5%A4%AB=%E5%B7%B4`
ok 7 - status code for `subdir_with space`
ok 8 - location for `subdir_with space`
ok 9 - status code for `subdir`
ok 10 - location for `subdir`
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 `b.txt`
ok 15 - content-type for `b.txt`
ok 16 - body for `b.txt`
ok 17 - status code for `c.js`
ok 18 - content-type for `c.js`
ok 19 - body for `c.js`
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 `subdir/index.html`
ok 30 - content-type for `subdir/index.html`
ok 31 - body for `subdir/index.html`
ok 32 - status code for `compress/foo.js`
ok 33 - body for `compress/foo.js`
ok 34 - status code for `compress/foo_2.js`
ok 35 - status code for `subdir_with space/index.html`
ok 36 - content-type for `subdir_with space/index.html`
ok 37 - body for `subdir_with space/index.html`
ok 38 - status code for `404`
ok 39 - content-type for `404`
ok 40 - body for `404`
ok 41 - status code for `subdir/e?foo=bar`
ok 42 - content-type for `subdir/e?foo=bar`
ok 43 - body for `subdir/e?foo=bar`
ok 44 - status code for `subdir/e?foo=bar.ext`
ok 45 - content-type for `subdir/e?foo=bar.ext`
ok 46 - body for `subdir/e?foo=bar.ext`
ok 47 - status code for `subdir/`
ok 48 - content-type for `subdir/`
ok 49 - body for `subdir/`
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=608.971ms
1..1
# time=1660.631ms
ok 6 - test/core.js # time=2521.152ms
# 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=165.261ms
1..1
# time=998.202ms
ok 7 - test/custom-content-type-file-secret.js # time=1795.597ms
# 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=35.769ms
# 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=155.735ms
1..2
# time=1066.714ms
ok 8 - test/custom-content-type-file.js # time=1823.886ms
# 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=179.805ms
1..1
# time=1085.634ms
ok 9 - test/custom-content-type.js # time=1860.34ms
# 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=153.58ms
1..1
# time=1047.128ms
ok 10 - test/default-default-ext.js # time=1778.853ms
# 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=152.813ms
1..1
# time=966.586ms
ok 11 - test/enotdir.js # time=1703.785ms
# 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=205.765ms
1..1
# time=1040.152ms
ok 12 - test/escaping.js # time=1782.026ms
# 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=269.288ms
1..1
# time=1490.441ms
ok 13 - test/express-error.js # time=2269.29ms
# 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`
ok 4 - status code for `%E4%B8%AD%E6%96%87?%E5%A4%AB=%E5%B7%B4`
ok 5 - status code for `subdir_with space`
ok 6 - status code for `subdir/e.html`
ok 7 - cache control for `subdir/e.html`
ok 8 - content-type for `subdir/e.html`
ok 9 - body for `subdir/e.html`
ok 10 - status code for `subdir/index.html`
ok 11 - cache control for `subdir/index.html`
ok 12 - content-type for `subdir/index.html`
ok 13 - body for `subdir/index.html`
ok 14 - status code for `compress/foo.js`
ok 15 - cache control for `compress/foo.js`
ok 16 - body for `compress/foo.js`
ok 17 - status code for `compress/foo_2.js`
ok 18 - cache control for `compress/foo_2.js`
ok 19 - status code for `subdir_with space/index.html`
ok 20 - cache control for `subdir_with space/index.html`
ok 21 - content-type for `subdir_with space/index.html`
ok 22 - body for `subdir_with space/index.html`
ok 23 - status code for `a.txt`
ok 24 - cache control for `a.txt`
ok 25 - content-type for `a.txt`
ok 26 - body for `a.txt`
ok 27 - status code for `b.txt`
ok 28 - cache control for `b.txt`
ok 29 - content-type for `b.txt`
ok 30 - body for `b.txt`
ok 31 - status code for `d.js`
ok 32 - cache control for `d.js`
ok 33 - content-type for `d.js`
ok 34 - body for `d.js`
ok 35 - status code for `c.js`
ok 36 - cache control for `c.js`
ok 37 - content-type for `c.js`
ok 38 - body for `c.js`
ok 39 - status code for `e.js`
ok 40 - cache control for `e.js`
ok 41 - content-type for `e.js`
ok 42 - body for `e.js`
ok 43 - status code for `subdir/e?foo=bar`
ok 44 - cache control for `subdir/e?foo=bar`
ok 45 - content-type for `subdir/e?foo=bar`
ok 46 - body for `subdir/e?foo=bar`
ok 47 - status code for `subdir/e?foo=bar.ext`
ok 48 - cache control for `subdir/e?foo=bar.ext`
ok 49 - content-type for `subdir/e?foo=bar.ext`
ok 50 - body for `subdir/e?foo=bar.ext`
ok 51 - status code for `subdir/`
ok 52 - cache control for `subdir/`
ok 53 - content-type for `subdir/`
ok 54 - body for `subdir/`
ok 55 - status code for `404`
ok 56 - cache control for `404`
ok 57 - content-type for `404`
ok 58 - body for `404`
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=510.248ms
1..1
# time=1789.686ms
ok 14 - test/express.js # time=2606.859ms
# 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=186.876ms
# 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=57.192ms
# 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=32.858ms
# 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=38.028ms
1..4
# time=1232.756ms
ok 15 - test/headers.js # time=1963.447ms
# Subtest: test/html-reflection.js
# Subtest: html reflection prevented
1..0
ok 1 - html reflection prevented # time=189.462ms
1..1
# time=1182.506ms
ok 16 - test/html-reflection.js # time=1904.664ms
# 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=158.636ms
1..1
# time=1033.997ms
ok 17 - test/illegal-access-date.js # time=1844.722ms
# 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=154.852ms
1..1
# time=1038.335ms
ok 18 - test/malformed-dir.js # time=1826.055ms
# Subtest: test/malformed.js
# Subtest: malformed uri
1..2
ok 1 - should not error
ok 2 - should be equal
ok 1 - malformed uri # time=162.544ms
1..1
# time=1021.003ms
ok 19 - test/malformed.js # time=1782.754ms
# 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=43.638ms
# 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=40.876ms
# 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=9.62ms
1..3
# time=226.43ms
ok 20 - test/mime.js # time=984.739ms
# 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=773.2ms
# 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=705.347ms
# 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=687.028ms
# 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=724.232ms
# 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=721.169ms
# 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=801.579ms
1..6
# time=5120.008ms
ok 21 - test/process-env-port.js # time=5914.876ms
# 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=176.482ms
# 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=82.611ms
# 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=69.097ms
# 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=105.174ms
# 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=247.627ms
1..5
# time=1491.26ms
ok 22 - test/range.js # time=2429.263ms
# 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=176.707ms
# Subtest: serverHeader should not exist
1..2
ok 1 - should not error
ok 2 - should be equal
ok 2 - serverHeader should not exist # time=65.179ms
1..2
# time=1114.529ms
ok 23 - test/server-header.js # time=1946.615ms
# 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=194.121ms
1..1
# time=1019.658ms
ok 24 - test/showdir-href-encoding.js # time=1800.782ms
# 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=191.731ms
1..1
# time=992.756ms
ok 25 - test/showdir-with-spaces.js # time=1770.602ms
1..25
# time=54538.739ms
----------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
----------|----------|----------|----------|----------|----------------|
----------|----------|----------|----------|----------|----------------|
All files | 100 | 100 | 100 | 100 | |
----------|----------|----------|----------|----------|----------------|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment