radiovisual / timecard

Keep track of your project development time.
MIT License
20 stars 4 forks source link

add functional tests to the cli #19

Open radiovisual opened 8 years ago

radiovisual commented 8 years ago

Items that need to be tested via the CLI:

API Tests

In a package with a package.json file

In a package without a package.json file

radiovisual commented 8 years ago

https://github.com/TooTallNate/ttys

radiovisual commented 8 years ago

Vorpal Inspiration:

Vorpal.execSync lets you get the output of a command in sync, which is useful, also make use of the intercept function to grab the stdout:

https://github.com/dthree/cash/blob/master/src/util/intercept.js

Vorpal can simulate keypresses with its UI functions: https://github.com/dthree/vorpal/wiki/api-|-vorpal.ui

A ton of UI simulation in the wat tests, I believe, including tests on tabbed completion, etc: https://github.com/dthree/wat/tree/master/test

radiovisual commented 8 years ago

execa Inspiration:

https://github.com/sindresorhus/detect-indent-cli/blob/master/test.js