Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Change CLI to accept entry files (similar to the duo itself) #77

Open
dominicbarnes opened this issue May 18, 2015 · 0 comments
Labels

Comments

@dominicbarnes
Copy link

I don't know if I'm the only one, but I find the current CLI a little confusing to use at first. So much so, I've actually created my own duo-based test-runner at dominicbarnes/duo-test, and I think the interface is a lot more intuitive, especially in comparison to the duo core CLI.

I figured I would at least propose my idea, but I'm totally fine continuing to just use my own runner at this point. (the only real gap it has is that it doesn't do saucelabs testing)

Basically, my CLI takes a variable number of arguments, where each is an entry file that is added to the resulting HTML. (or test/*.js as the default) It uses dominicbarnes/duo-serve under the hood to auto-rebuild. (rather than incorporating a build command into the CLI)

# run phantomjs testing against test/*.js
$ duo-test phantomjs

# start server for browser testing of test/a.js and test/b.js
$ duo-test browser test/a.js test/b.js

My main issue with the current API is the complexity of adding custom build commands, as the default is seldom usable for me. Plus, making the command mirror duo itself should make it easier to start using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant