awatson1978 / starrynight

Scaffolding and Testing tool optimized for Meteor apps.
http://starrynight.meteorapp.com
53 stars 11 forks source link

Test tags #87

Closed mrvbalc closed 8 years ago

mrvbalc commented 8 years ago

Hi, Is there a way to run starrynight tests using tags http://nightwatchjs.org/guide#test-tags

awatson1978 commented 8 years ago

Absolutely. We regularly use commands such as the following during local development:

starrynight --run-tests --type validation --tags accounts
starrynight --run-tests --framework nightwatch --tags mobile
awatson1978 commented 8 years ago

Most all of the Nightwatch commands have been aliased in StarryNight. Feel free to submit PRs if we've missed any.

https://github.com/awatson1978/starrynight/blob/develop/tool/frameworks/nightwatch.js#L75-L122

mrvbalc commented 8 years ago

cool thx, and thx for the quick response :)

awatson1978 commented 8 years ago

I happened to have been doing a bit of work on this today, as it happens. There was a small typo that was fixed, tag vs tags. The latest version of starrynight 3.8.13 matches the nightwatch API.

npm install -g starrynight
starrynight run-tests --type validation --tag layout