dat-ecosystem-archive / datproject-discussions

a repo for discussions and other non-code organizing stuff [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
65 stars 6 forks source link

cli process spawning test module #6

Open max-mapper opened 9 years ago

max-mapper commented 9 years ago

for testing cli modules more better we need a module that:

for reference/inspiration: https://github.com/maxogden/dat/blob/master/test/tests/cli.js#L332

max-mapper commented 9 years ago

@sindresorhus how do you test CLI modules cleanly? know anything that fits our criteria above?

sindresorhus commented 9 years ago

I don't [cleanly]. I've just been lazy using spawning and checking, but this sounds really good. I could definitely use something like this.

Regarding win-spawn: https://github.com/IndigoUnited/node-cross-spawn#why