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

Add the ability to skip suites and benchmarks #4

Closed
lazd opened this issue Jul 12, 2014 · 1 comment
Closed

Add the ability to skip suites and benchmarks #4

lazd opened this issue Jul 12, 2014 · 1 comment

Comments

@lazd
Copy link
Contributor

lazd commented Jul 12, 2014

It would be useful if certain suites or benchmarks could be skipped. One way to do this is to add a .skip() method to the benchmark and suite functions a la inclusive tests in Mocha:

suite.skip('Set value', function() {
  // ...
});

suite('Get value', function() {
  benchmark.skip(function() {
    // ...
  });
});

This is useful when benchmarks are crashing and you need to avoid running them.

@JamieMason
Copy link
Owner

This landed in 0.6.0, thanks @lazd.

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

No branches or pull requests

2 participants