Create pending tests by prefixing your tests name or context by '// ' #211

Closed
wants to merge 1 commit into
from

Projects

None yet

4 participants

@Filirom1
Contributor

I am quite agree with #165, but I would prefer an other syntax :

{
 '// foo': function (result) {
    assert.equal(result, 'good');
 },

}

Every vow containing // (the space is important) will be in pending state.

Every topic under a pending context will not be executed.

'// given a pending sub context with an inner topic': {
  topic: function (parenttopic) {
    process.nextTick(function(){
      throw new Error('Should not be executed.');
    })
    return parenttopic + 1;
  },
  'then both sub-topics and sub-vows are not executed': function (topic) {
    throw new Error('Should not be executed.');
  }
}
@osher
osher commented Aug 9, 2012

+1

@danjenkins

+1

@indexzero
Member

👍 very simple feature addition. Will land in 0.9.0

@indexzero indexzero added the v0.9.0 label Nov 4, 2014
@indexzero
Member

Thanks. This is merged into the v0.9.x branch.

@indexzero indexzero closed this Nov 22, 2014
@indexzero indexzero referenced this pull request Nov 22, 2014
Merged

v0.9.0-rc1 #328

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment