Skip to content

Don't ignore Stdlib_* files when generating docstring tests #7694

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 3 commits into from
Jul 22, 2025

Conversation

mediremi
Copy link
Contributor

DocTest was not generating docstring tests for Stdlib modules as it was ignoring all files starting with Stdlib_.

I discovered this issue while looking into why I couldn't manage to get doctests for a new binding I was writing to fail.

Also, tests that required specific node.js versions to run were not being skipped correctly but this was not an issue in practice as the tests were not being run anyway.

@mediremi mediremi marked this pull request as ready for review July 22, 2025 08:17
Copy link
Collaborator

@zth zth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

@zth zth enabled auto-merge (squash) July 22, 2025 08:22
@@ -12,22 +12,22 @@ let nodeVersion =

let ignoreRuntimeTests = [
(
// Ignore some tests require Node.js v20+
// Ignore tests that require Node.js v20+
Copy link
Collaborator

@nojaf nojaf Jul 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we still need this?
Our .nvm is 22 now right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great to get rid of if we can.

Copy link

pkg-pr-new bot commented Jul 22, 2025

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@7694

@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@7694

@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@7694

@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@7694

@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@7694

@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@7694

commit: d4c7dab

@zth zth merged commit b63b544 into rescript-lang:master Jul 22, 2025
27 checks passed
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.

3 participants