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

Failing test to illustrate a problem with how TLDR gathers tests #6

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions tests/rake_task_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,33 @@ def test_running_default_base_path_when_custom_also_exists
😁
MSG
end

def test_running_multiples_rake_tasks_in_one_process
result = TLDRunner.run_command("cd example/c && TLDR_OPTS=\"--seed 1\" bundle exec rake tldr b_tests")

assert_includes result.stdout, <<~MSG
👓
Command: bundle exec tldr --seed 1 --helper "spec/spec_helper.rb" "spec/math_spec.rb"
🌱 --seed 1

🏃 Running:

😁

Finished in 0ms.

1 test class, 1 test method, 0 failures, 0 errors, 0 skips
neat!
Command: bundle exec tldr --seed 1 --base-path "../b"
🌱 --seed 1

🏃 Running:

😁

Finished in 0ms.

1 test class, 1 test method, 0 failures, 0 errors, 0 skips
MSG
end
end