Created
January 13, 2017 02:21
-
-
Save evantorrie/d702ccd2e0ac2f30deb76e336128bddd to your computer and use it in GitHub Desktop.
nyc eager instantiation of instrumentation library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[18:20] evant@localhost:nodejs-cli-profiler$ rm -fr node_modules/.cache/; !! | |
rm -fr node_modules/.cache/; node node_modules/jenkins-mocha/node_modules/.bin/nyc --eager --reporter lcov --report-dir ./artifacts/coverage -- node_modules/jenkins-mocha/node_modules/.bin/_mocha --reporter node_modules/jenkins-mocha/node_modules/spec-xunit-file/index.js --colors test/profiler.test.js | |
CPU Profiler | |
Initialization | |
✓ should instantiate a new Profiler object | |
✓ sets version correctly | |
✓ sets devtoolsFrontendURL correctly | |
✓ fails if the type of connection is not to "node" | |
✓ enables the Profiler | |
cpuProfile | |
. | |
✓ should call setSamplingInterval before start (1007ms) | |
heapSnapshot | |
✓ should call enable, takeSnapshot, disable in right order | |
close | |
✓ should close the connection | |
getDevToolsURL | |
✓ should return the expurgated DevToolsURL | |
9 passing (1s) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
beforeEach( function() { | |
mockery.enable(); | |
mockery.registerAllowable('../index'); | |
mockery.registerAllowable('fs'); | |
ProfilerObj = require('../index'); | |
}); | |
afterEach( function () { | |
mockery.deregisterAll(); | |
mockery.disable(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[18:18] evant@localhost:nodejs-cli-profiler$ node node_modules/jenkins-mocha/node_modules/.bin/nyc --reporter lcov --report-dir ./artifacts/coverage -- node_modules/jenkins-mocha/node_modules/.bin/_mocha --reporter node_modules/jenkins-mocha/node_modules/spec-xunit-file/index.js --colors test/profiler.test.js | |
[18:19] evant@localhost:nodejs-cli-profiler$ !node | |
node node_modules/jenkins-mocha/node_modules/.bin/nyc --reporter lcov --report-dir ./artifacts/coverage -- node_modules/jenkins-mocha/node_modules/.bin/_mocha --reporter node_modules/jenkins-mocha/node_modules/spec- | |
xunit-file/index.js --colors test/profiler.test.js | |
CPU Profiler | |
Initialization | |
WARNING: loading non-allowed module: istanbul-lib-instrument | |
WARNING: loading non-allowed module: ./instrumenter | |
WARNING: loading non-allowed module: babylon | |
WARNING: loading non-allowed module: babel-types | |
WARNING: loading non-allowed module: babel-runtime/core-js/object/get-own-property-symbols | |
WARNING: loading non-allowed module: core-js/library/fn/object/get-own-property-symbols | |
WARNING: loading non-allowed module: ../../modules/es6.symbol | |
WARNING: loading non-allowed module: ./_global | |
WARNING: loading non-allowed module: ./_has | |
WARNING: loading non-allowed module: ./_descriptors | |
WARNING: loading non-allowed module: ./_fails | |
WARNING: loading non-allowed module: ./_export | |
WARNING: loading non-allowed module: ./_global | |
WARNING: loading non-allowed module: ./_core | |
WARNING: loading non-allowed module: ./_ctx | |
WARNING: loading non-allowed module: ./_a-function | |
WARNING: loading non-allowed module: ./_hide | |
WARNING: loading non-allowed module: ./_object-dp | |
WARNING: loading non-allowed module: ./_an-object | |
WARNING: loading non-allowed module: ./_is-object | |
WARNING: loading non-allowed module: ./_ie8-dom-define | |
WARNING: loading non-allowed module: ./_descriptors | |
WARNING: loading non-allowed module: ./_to-primitive | |
WARNING: loading non-allowed module: ./_is-object | |
WARNING: loading non-allowed module: ./_descriptors | |
WARNING: loading non-allowed module: ./_property-desc | |
WARNING: loading non-allowed module: ./_descriptors | |
WARNING: loading non-allowed module: ./_redefine | |
WARNING: loading non-allowed module: ./_hide | |
WARNING: loading non-allowed module: ./_meta | |
WARNING: loading non-allowed module: ./_uid | |
WARNING: loading non-allowed module: ./_is-object | |
WARNING: loading non-allowed module: ./_has | |
WARNING: loading non-allowed module: ./_object-dp | |
... | |
... | |
CPU Profiler | |
Initialization | |
✓ should instantiate a new Profiler object | |
✓ sets version correctly | |
✓ sets devtoolsFrontendURL correctly | |
✓ fails if the type of connection is not to "node" | |
✓ enables the Profiler | |
cpuProfile | |
. | |
✓ should call setSamplingInterval before start (1009ms) | |
heapSnapshot | |
✓ should call enable, takeSnapshot, disable in right order | |
close | |
✓ should close the connection | |
getDevToolsURL | |
✓ should return the expurgated DevToolsURL | |
9 passing (1s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment