Skip to content

Instantly share code, notes, and snippets.

@okuryu
Created August 10, 2015 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okuryu/975ec10d0f1ab0d63980 to your computer and use it in GitHub Desktop.
Save okuryu/975ec10d0f1ab0d63980 to your computer and use it in GitHub Desktop.
> yuidocjs@0.8.1 pretest /Users/okuryu/work/yuidoc
> eslint lib/*.js tests/*.js
> yuidocjs@0.8.1 test /Users/okuryu/work/yuidoc
> istanbul cover --print=both --yui ytestrunner -- --include ./tests/options.js --include ./tests/builder.js --include ./tests/parser.js --include ./tests/parser_coffee.js --include ./tests/files.js --include ./tests/utils.js --include ./tests/preprocessor.js
✔ test: server
✔ test: server with port
✔ test: server with default port and following argument
✔ test: tab-to-space
✔ test: long quiet option
✔ test: short quiet option
✔ test: short config
✔ test: --config
✔ test: --configfile
✔ test: -e
✔ test: --extension
✔ test: -x
✔ test: --exclude
✔ test: --project-version
✔ test: --no-color
✔ test: -N
✔ test: --no-code
✔ test: -C
✔ test: --norecurse
✔ test: -n
✔ test: --no-sort
✔ test: --selleck
✔ test: -S
✔ test: -T simple
✔ test: --theme simple
✔ test: --theme foobar
✔ test: -t ./foobar
✔ test: --themedir ./foobar
✔ test: --syntaxtype coffee
✔ test: --view
✔ test: -V
✔ test: -p
✔ test: --parse-only
✔ test: -o <path>
✔ test: --outdir <path>
✔ test: -D
✔ test: --no-delete-out
✔ test: --lint
✔ test --debug
✔ test: --charset
✔ test: --charset foo
✔ test: --tab-to-space 8
✖ test: prep
✖ test: Directories
✖ test: Assets Directories
✖ test: index.html
✔ test: data.json
✖ test: api.js
✖ test: classes/JSON.html
✖ test: files name filter
✖ test: module files
✖ test: class files
✖ test: inherited methods
✖ test: helper methods
✖ test: markdown options
✔ test: out directory
✔ test: data.json creation
✖ test: parser
✖ test: project data
✖ test: files parsing
✖ test: namespace parsing
✖ test: module parsing
✖ test: main module association
✖ test: submodule parsing
✖ test: extra module data parsing
✖ test: class parsing
✖ test: classitems parsing
✖ test: parameter parsing
✖ test: indented description
✖ test: object parameters
✖ test: tag fixing
✖ test: double namespaces
✖ test: inherited methods
✖ test: case tags
✖ test: required attribute
✖ test: optional attribute
✖ test: module with example meta
✖ test: class with example meta
✖ test: event with optional items
✖ test: markdown example
✔ test: CoffeeScript Project Data 1
✔ test: CoffeeScript Project Data 2
✔ test: exists
✔ test: copyDirectory
✔ test: copyFile
✔ test: copyPath for file
✔ test: copyPath for directory
✔ test: deletePath for file
✔ test: deletePath for symbolic link
✔ test: deletePath for directory
✔ test: isDirectory for directory
✔ test: isDirectory for symbolic link
✔ test: isFile for file
✔ test: isFile for symbolic link
✔ test: isSymbolicLink
✔ test: lstatSync
✔ test: statSync
✔ test: copyAssets
✔ test: getJSON
✔ test: writeFile
✔ test: readFile
✔ test: Nearest Folder Priority
✔ test: Finds package.json
✔ test: Finds package.json in same folder as yuidoc.json
✔ test: Ignores package.json in deeper folder than yuidoc.json
✔ test: Must be breadth-first
✔ test: path globs
✔ test: ignore paths
✔ test: Adds paths onto end in sequence
✔ test: normalises windows paths into web happy urls
✔ test: joins relative paths
✔ test: single preprocessor
✔ test: single preprocessor with absolute path
✔ test: several preprocessors
✔ test: the test preprocessor does its job
✔ test: load preprocessor as a npm module
================================================================================
Final summary: Passed: 81, Failed: 35, Skipped: 0, Total: 116, Load errors: 0, Line coverage: Unknown, Function coverage: Unknown
================================================================================
---------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
---------------|----------|----------|----------|----------|----------------|
lib/ | 30.67 | 23.6 | 30.46 | 30.67 | |
builder.js | 1.61 | 0 | 0.81 | 1.61 |... 2,1643,1644 |
docparser.js | 33.74 | 22.71 | 43.08 | 33.74 |... 4,1439,1440 |
docview.js | 25 | 0 | 25 | 25 |... 54,57,58,61 |
files.js | 71.2 | 55.45 | 96.15 | 71.2 |... 475,476,477 |
help.js | 57.14 | 100 | 33.33 | 57.14 | 69,78,79 |
index.js | 50 | 43.75 | 66.67 | 50 |... 70,71,72,74 |
options.js | 87.21 | 82.81 | 100 | 87.21 |... 131,133,163 |
project.js | 48.48 | 37.5 | 66.67 | 48.48 |... 54,58,59,60 |
server.js | 5.32 | 0 | 3.7 | 5.32 |... 226,227,231 |
utils.js | 61.45 | 49.57 | 54.17 | 61.45 |... 470,471,475 |
yuidoc.js | 73.17 | 46.43 | 76.19 | 73.17 |... 374,402,403 |
---------------|----------|----------|----------|----------|----------------|
All files | 30.67 | 23.6 | 30.46 | 30.67 | |
---------------|----------|----------|----------|----------|----------------|
=============================== Coverage summary ===============================
Statements : 30.67% ( 629/2051 )
Branches : 23.6% ( 286/1212 )
Functions : 30.46% ( 92/302 )
Lines : 30.67% ( 629/2051 )
================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment