Skip to content

Comments

Add FSI options tests#19346

Open
bbatsov wants to merge 1 commit intodotnet:mainfrom
bbatsov:add-fsi-options-tests
Open

Add FSI options tests#19346
bbatsov wants to merge 1 commit intodotnet:mainfrom
bbatsov:add-fsi-options-tests

Conversation

@bbatsov
Copy link
Contributor

@bbatsov bbatsov commented Feb 22, 2026

Description

Adds test coverage for FSI-specific command-line options that previously had none. This includes --quiet, --exec, --use, --load, --gui, --readline, --quotations-debug, --shadowcopyreferences, --nologo, and error cases for unknown options and invalid --warn levels.

Also wires up the existing but never-compiled CLI test files (FsiCliTests.fs, FscCliTests.fs, CliProcessTests.fs) by adding them to the .fsproj and implementing the runFsiProcess/runFscProcess subprocess helpers they depend on.

Contributes to #13878

Checklist

  • Test cases added

  • Performance benchmarks added in case of performance changes

  • Release notes entry updated:

    If you believe that release notes are not necessary for this PR, please add NO_RELEASE_NOTES label to the pull request.

Add runFsiProcess/runFscProcess subprocess helpers to Compiler.fs and
include the existing CLI test files (FsiCliTests.fs, FscCliTests.fs,
CliProcessTests.fs) in the project build.

Add 19 new tests covering --quiet, --exec, --use, --load, --gui,
--readline, --quotations-debug, --shadowcopyreferences, --nologo,
and error cases for unknown options and invalid --warn levels.

Contributes to dotnet#13878
@github-actions
Copy link
Contributor

✅ No release notes required

@bbatsov bbatsov mentioned this pull request Feb 22, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant