This is my proposal for revamping the YUI Core Feature detection system.
- 90% of our so-called "Feature Tests" are actually Loader conditional modules.
- Some "free-flowing" tests in DOM modules.
TAP version 13 | |
# dicovers new versions in outdated | |
not ok 1 should be equal | |
--- | |
file: /Users/yui/src/npm2/npm/node_modules/slide/lib/async-map.js | |
line: 48 | |
column: 11 | |
stack: | |
- getCaller (/Users/yui/src/npm2/npm/node_modules/tap/lib/tap-assert.js:418:17) | |
- assert (/Users/yui/src/npm2/npm/node_modules/tap/lib/tap-assert.js:21:16) |
YUI.applyConfig({ | |
groups: { | |
gallery: { | |
combine: false, | |
root: '/build/', | |
patterns: { | |
'gallery-': { }, | |
'lang/gallery-': {}, | |
'gallerycss-': { type: 'css' } | |
} |
mkdir -p ./src/node/meta | |
cd src | |
vim node/meta/node.json | |
//Add contents from below | |
yogi loader --yes | |
//The content of the resulting file is below. |
yogi test --istanbul --coverage | |
yogi [info] using yogi@0.0.63 on node@0.8.16 | |
yogi [info] using module: gallery-flickr-carousel | |
yogi [info] prepping grover tests | |
yogi [info] adding tests route | |
yogi [info] turning on coverage support in grover | |
yogi [info] launching xdr server on port 5021 | |
yogi [info] listening on: http://127.0.0.1:5020 | |
Starting Grover on 1 files with PhantomJS@1.8.0 | |
Running 15 concurrent tests at a time. |
yogi test --yeti --grid --phantom 20 -x editor -x yui-throttle | |
yogi [info] using yogi@0.0.62 on node@0.8.16 | |
yogi [info] using override modules: anim, app, arraysort, async-queue, attribute, autocomplete, base, button, cache, calendar, charts, classnamemanager, collection, color, common, console, console-filters, cookie, cssbase, cssfonts, cssgrids, cssreset, dataschema, datasource, datatable, datatable-deprecated, datatype, date, dd, dial, dom, dump, editor, escape, event, event-custom, event-gestures, event-simulate, event-valuechange, file, gesture-simulate, get, graphics, handlebars, highlight, history, imageloader, intl, io, json, jsonp, loader, matrix, node, node-flick, node-focusmanager, node-menunav, node-scroll-info, number, oop, overlay, panel, parallel, pjax, plugin, pluginhost, profiler, querystring, queue-promote, recordset, resize, scrollview, simpleyui, slider, sortable, stylesheet, substitute, swf, swfdetect, tabview, template, test, test-console, text, transition, uploader, uploader-deprecat |
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. | |
Trace | |
at AgentGroup.growListenerTree (/Users/yui/src/yeti/node_modules/eventemitter2/lib/eventemitter2.js:189:23) | |
at AgentGroup.EventEmitter.on (/Users/yui/src/yeti/node_modules/eventemitter2/lib/eventemitter2.js:346:24) | |
at EventYoshi.add.self.child (/Users/yui/src/yeti/node_modules/eventyoshi/lib/index.js:32:10) | |
at Array.forEach (native) | |
at EventYoshi.add (/Users/yui/src/yeti/node_modules/eventyoshi/lib/index.js:31:31) | |
at AgentManager.bindAgentGroup (/Users/yui/src/yeti/lib/hub/agent.js:625:28) | |
at AgentManager.groupAgents (/Users/yui/src/yeti/lib/hub/agent.js:767:14) | |
at Array.forEach (native) |
$phantomjs-1.7.0 ./repro.js | |
Page executed successfully | |
$ phantomjs-1.8.0 ./repro.js | |
PhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://code.google.com/p/phantomjs/issues/entry with the crash dump file attached: /tmp/2f69ff41-1800-ac63-7c5f013f-25df8b39.dmp | |
Segmentation fault (core dumped) |
yogi test --yeti | |
yogi [info] using yogi@0.0.52 on node@0.8.15 | |
yogi [info] using override modules: anim, app, arraysort, async-queue, attribute, autocomplete, base, build_docs, button, cache, calendar, charts, classnamemanager, collection, color, common, console, console-filters, cookie, cssbase, cssfonts, cssgrids, cssreset, dataschema, datasource, datatable, datatable-deprecated, datatype, date, dd, dial, dom, dump, editor, escape, event, event-custom, event-gestures, event-simulate, event-valuechange, file, gesture-simulate, get, graphics, handlebars, highlight, history, imageloader, intl, io, json, jsonp, loader, matrix, node, node-flick, node-focusmanager, node-menunav, node-scroll-info, number, oop, overlay, panel, parallel, pjax, plugin, pluginhost, profiler, querystring, queue-promote, recordset, resize, scrollview, simpleyui, slider, sortable, stylesheet, substitute, swf, swfdetect, tabview, template, test, test-console, text, transition, uploader, uploader-deprecated, widget, widget-anim, widget-au |