Skip to content

Explicitly require helper in test_case #1297

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

Merged
merged 1 commit into from
Feb 20, 2025
Merged

Explicitly require helper in test_case #1297

merged 1 commit into from
Feb 20, 2025

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Feb 20, 2025

Currently, the helper is required through the Rake test task, which is very implicit and means when running some tests directly some methods are not available.

For example, running bundle exec ruby -Itest PATH_TO_RDOC/test/rdoc/test_rdoc_comment.rb will trigger NoMethodError: undefined method 'assert_linear_performance' for an instance of RDocCommentTest because test/lib/helper.rb is not required.

This commit makes the test case always require the helper and remove the related options from the Rake test task.

Copy link

cloudflare-workers-and-pages bot commented Feb 20, 2025

Deploying rdoc with  Cloudflare Pages  Cloudflare Pages

Latest commit: defcd3c
Status: ✅  Deploy successful!
Preview URL: https://d6793a53.rdoc-6cd.pages.dev
Branch Preview URL: https://improve-test-setup.rdoc-6cd.pages.dev

View logs

@st0012 st0012 force-pushed the improve-test-setup branch from 992b77b to b36133a Compare February 20, 2025 11:36
Currently, the helper is required through the Rake test task, which
is very implicit and means when running some tests directly some methods
are not available.

This commit makes the test case always require the helper and remove
the related options from the Rake test task.
@st0012 st0012 force-pushed the improve-test-setup branch from b36133a to defcd3c Compare February 20, 2025 11:37
@st0012 st0012 merged commit 7d35df3 into master Feb 20, 2025
52 checks passed
@st0012 st0012 deleted the improve-test-setup branch February 20, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant