openconf / jschat

frontend community chat
MIT License
23 stars 6 forks source link

devrequest: dev should be able to run tests separately #8

Closed edjafarov closed 10 years ago

edjafarov commented 11 years ago

mocha can run tests with kind of tags (#tag) we need to leverage this for our server tests

sudodoki commented 11 years ago
  1. Are you talking about https://github.com/visionmedia/mocha/wiki/Tagging ?
  2. What kind of tags are you expecting to see? 'fast'/'slow', 'unit' (in case they're coming)/'integration'?
  3. Why not create separate test targets in grunt?
edjafarov commented 11 years ago

1) yep, about those tags. 2) any of those as well as custom tags by #featurename 3) dev should be able to mark tests that correspond to feature he is developing.

sudodoki commented 10 years ago

Just adding

options: {
  grep: '@yourTag'
  reporter: "spec"
}

into gruntfile will grant you (what a wordplay :wink:) such an ability.

edjafarov commented 10 years ago

awesome! that would be even more awesome to have something like node runtest.js #mytag