Skip to content

Add FSI options tests - #19346

Merged
T-Gro merged 3 commits into
dotnet:mainfrom
bbatsov:add-fsi-options-tests
Aug 19, 2026
Merged

Add FSI options tests#19346
T-Gro merged 3 commits into
dotnet:mainfrom
bbatsov:add-fsi-options-tests

Conversation

@bbatsov

Copy link
Copy Markdown
Contributor

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.

@github-actions

Copy link
Copy Markdown
Contributor

✅ No release notes required

@bbatsovbbatsov mentioned this pull request Feb 22, 2026
3 tasks
@bbatsov
bbatsovforce-pushed the add-fsi-options-tests branch from dc1a4fe to 67e228eCompareMarch 5, 2026 10:39
@T-Gro
T-Gro marked this pull request as draft March 6, 2026 18:26
@github-project-automationgithub-project-automationBot moved this from New to In Progress in F# Compiler and ToolingApr 10, 2026
Comment threadtests/FSharp.Compiler.ComponentTests/CompilerOptions/Fsc/FscCliTests.fs Outdated
@bbatsov
bbatsovforce-pushed the add-fsi-options-tests branch from 67e228e to c20d2feCompareMay 12, 2026 16:33
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
@bbatsov
bbatsovforce-pushed the add-fsi-options-tests branch from c20d2fe to f647f00CompareMay 12, 2026 16:38
@bbatsov
bbatsov marked this pull request as ready for review May 12, 2026 18:29
@github-actionsgithub-actionsBot added the AI-Tooling-Check-Scanned-Clean Tooling check: diff analyzed, no interesting infrastructure files label Aug 4, 2026
T-Groand others added 2 commits August 13, 2026 17:43
…fsproj
The PR added three spurious <Compile> items that broke the build across
all test-running CI jobs:
- CompilerOptions\fsc\FscCliTests.fs duplicated the existing Fsc\FscCliTests.fs
- CompilerOptions\fsi\FsiCliTests.fs duplicated an existing entry
- CompilerOptions\CliProcessTests.fs referenced a file that does not exist
The new FSI option tests live in the already-referenced FsiCliTests.fs.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
# Conflicts:
#	tests/FSharp.Compiler.ComponentTests/CompilerOptions/fsi/FsiCliTests.fs
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI-Tooling-Check-Scanned-CleanTooling check: diff analyzed, no interesting infrastructure files

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants

@bbatsov@abonie@T-Gro