-
Notifications
You must be signed in to change notification settings - Fork 512
Fix: test-options with tag counting wrong file entries #1017
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
base: master
Are you sure you want to change the base?
Fix: test-options with tag counting wrong file entries #1017
Conversation
/(_spec\.rb|\.feature)$/ | ||
end | ||
|
||
def find_tests(tests, options = {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we reuse super
somehow so we don't have to copy-paste that much ?
|
||
module ParallelTests | ||
module RSpec | ||
class RuntimeJsonFormatter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you explain what this does to solves the issue ?
ParallelTests::RSpec::Runner.send(:find_tests, *args) | ||
end | ||
|
||
it "finds turnip feature files" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happened to the old tests ?
it "finds turnip feature files" do | ||
with_files(['a/test.feature']) do |root| | ||
expect(call(["#{root}/"])).to eq(["#{root}/a/test.feature"]) | ||
context 'without --tag' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these tests don't really test the outcome, but how things pass around under the hood, so kind of easy to break and hard to understand
... we we instead test an outcome like that it runs the tests that have the given tag and not the others ?
Address #598
Checklist
master
(if not - rebase it).code introduces user-observable changes.