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

Improve specs sampling #101

Open
palkan opened this Issue Oct 10, 2018 · 0 comments

Comments

1 participant
@palkan
Owner

palkan commented Oct 10, 2018

TestProf allows to run a random subset of your test suite but this feature has some limitations:

  • it only supports running example groups (or test files) and not individual examples
  • it doesn't work with RSpec filters.

We have to improve sampling and add the following features:

  • Make it possible to sample examples or groups:
# sample individual examples
SAMPLE=10 rspec
# or
SAMPLE=10 rake test

# sample example groups
SAMPLE_GROUPS=10 rspec

# or files for Minitest
SAMPLE_GROUPS=10 rake test
  • Make it work with RSpec filters.
# with tags
SAMPLE=10 rspec --tag type:controller

# or filters
SAMPLE=10 rspec -e "feature"

Should run ten random controller specs.

@palkan palkan created this issue from a note in TestProf Development (Next Release) Oct 10, 2018

@mkldon mkldon referenced a pull request that will close this issue Oct 19, 2018

Open

Improve specs sampling #103

@palkan palkan added the PR Attached label Oct 19, 2018

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