Add FSI options tests#19346
Open
bbatsov wants to merge 1 commit into
Open
Conversation
Contributor
✅ No release notes required |
3 tasks
dc1a4fe to
67e228e
Compare
T-Gro
approved these changes
Apr 10, 2026
T-Gro
reviewed
Apr 10, 2026
| /// Expected: //<Expects id="FS0225" status="error">Source file ['"].+['"] could not be found</Expects> | ||
| /// CLI Test: FSC with non-existent absolute path (Windows-style) | ||
| [<FactForWINDOWS>] | ||
| [<FactForDESKTOP>] |
Member
There was a problem hiding this comment.
The rest of the PR is good, but this is suspicious - this drops coverage for testing of .NETCore (like net10) on Windows, and only moves to testing via .NET Framework.
Contributor
Author
There was a problem hiding this comment.
My bad! I'll address this soon.
Contributor
Author
There was a problem hiding this comment.
Good catch — switched to FactForWINDOWS so the Windows-path and UNC tests now run on both .NET Framework and .NETCore Windows.
67e228e to
c20d2fe
Compare
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
c20d2fe to
f647f00
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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--warnlevels.Also wires up the existing but never-compiled CLI test files (
FsiCliTests.fs,FscCliTests.fs,CliProcessTests.fs) by adding them to the.fsprojand implementing therunFsiProcess/runFscProcesssubprocess 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_NOTESlabel to the pull request.