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

skip and only for exports ui #1073

Closed
seanmonstar opened this issue Dec 17, 2013 · 6 comments
Closed

skip and only for exports ui #1073

seanmonstar opened this issue Dec 17, 2013 · 6 comments
Labels
duplicate been there, done that, got the t-shirt... type: feature enhancement proposal

Comments

@seanmonstar
Copy link

I see in #524 is where .skip() and .only() where added, and some of the comments were looking for ways that this could be used with the exports ui. The commit including them says "only tdd and bdd for now", but that's a year ago.

Could strings of "comment" and "hashbang" be used for skip and only?

module.exports = {
  Array: {
    '//should be skipped': function() {},
    '#!should be only test': function(){}
  }
};

Or something? Anything? I much prefer exports ui, but I miss being able to use skip and only.

@chopachom
Copy link

+1 For something like this

@seanmonstar
Copy link
Author

what about prefacing the property with SKIP and ONLY.

exports['ONLY my cool test'] = function() {

}

@eddieajau
Copy link

👍 though not sure on the format (while convenient, I don't like the use of a prefix in the property name). If limited to the suite level, it could be as follows:

module.exports = {
    'this suite will be skipped' : {
        skip: true,
        'test' : function () {}
    },
    'only this suite will be run' : {
        only: true,
        'test' : function () {}
    }
}

@stale
Copy link

stale bot commented Oct 17, 2017

I am a bot that watches issues for inactivity.
This issue hasn't had any recent activity, and I'm labeling it stale. In 14 days, if there are no further comments or activity, I will close this issue.
Thanks for contributing to Mocha!

@stale stale bot added the stale this has been inactive for a while... label Oct 17, 2017
@boneskull boneskull added type: feature enhancement proposal and removed stale this has been inactive for a while... labels Oct 18, 2017
@resistdesign
Copy link

Oh man, I thought this was already a thing! 😮

@JoshuaKGoldberg
Copy link
Member

Duplicate of #928... I think. Someone yell at me if this is for something else. But at the very least I think #928 is more fleshed out and would solve the same use case as this.

@JoshuaKGoldberg JoshuaKGoldberg closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2023
@JoshuaKGoldberg JoshuaKGoldberg added duplicate been there, done that, got the t-shirt... and removed status: accepting prs Mocha can use your help with this one! labels Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate been there, done that, got the t-shirt... type: feature enhancement proposal
Projects
None yet
Development

No branches or pull requests

6 participants