maxnachlinger / grunt-node-tap Goto Github PK
View Code? Open in Web Editor NEWA Grunt task to run node-tap tests and read their output.
A Grunt task to run node-tap tests and read their output.
When I first installed this library I had already included tap
as a dependency in my project and therefore npm doesn't install tap
under node_modules/grunt-node-tap/node_modules/
. grunt-node-tap
uses require properly and node knows where to find it without any issues. However it looks like the variable tapPath
in lib/nodeTap.js
expects tap
to be located under its own node_modules
folder. When it attempts to spawn the child process later on(line 84), the command doesn't seem to be available and it's never run. grunt-node-tap
then receives no response and reports 0/0 tests run for each file listed.
I was able to get around this by removing my tap dependency before installing grunt-node-tap
and then re-adding it. This places the tap
dependency in both node_modules
folders.
Any idea on how to fix the path issue? I tried looking around for a solution but I'm not really sure how the childprocess methods work.
http://github.com/evilstreak/markdown-js worked with v0.1.46. However since 0.1.48 up we've been getting ENOENT errors. when trying to invoke grunt directly:
% ./node_modules/.bin/grunt all
Running "node_tap:default_options" (node_tap) task
Fatal error: spawn ENOENT
Interestingly:
% PATH=./node_modules/.bin/:$PATH ./node_modules/.bin/grunt
Running "node_tap:default_options" (node_tap) task
Stats: ./test/features.t.js: 196/196
Stats: ./test/html_renderer.t.js: 2/2
Stats: ./test/interface.t.js: 3/3
Stats: ./test/regressions.t.js: 83/83
...
Is this a bug in grunt-node-tap? Problem with our setup?
Perhaps we should use the win-spawn module.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.