Test Explorer 'fsharp' tag is guessed from the test name: real Expecto tests are untagged, C# 'Property' tests are tagged F#
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- csharp, typescript
调研方向
Start with test-items.ts and test-targets.ts, then read the listed assertions in test-explorer-assert-kit.ts, test-explorer-frameworks.test.ts, and testing-lens-e2e.test.ts. Trace how project language reaches each test item; verify the fsharp tag follows .fsproj projects across frameworks and is absent for C# tests. Update the affected assertions and run the relevant suites.
由索引模型根据 Issue 内容生成。
描述
What happens
test-items.ts makeTestItem tags a row fsharp when isExpectoTest(name) || isFsCheckTest(name) (test-targets.ts). Both are substring checks on the test name:
isExpectoTest: name containsExpecto,testCaseortestListisFsCheckTest: name containsFsCheckorProperty
A real Expecto test's id is its list path, e.g. calculator.adds two numbers (see test-explorer-expecto.test.ts). It contains none of those words, so no real Expecto test is ever tagged fsharp. A C# test such as MyApp.Tests.PropertyTests.Roundtrips contains Property, so it is tagged fsharp.
Expected
The fsharp tag comes from the language of the project that built the test (an .fsproj), not from a guess at the name. It applies to every F# test (xUnit, NUnit, MSTest, Expecto, FsCheck) and to no C# test.
Notes
Several suites currently assert the name-based behaviour (assertSnapshotUriShape in test-explorer-assert-kit.ts: "no row carries a framework tag"; assertItemShape in test-explorer-frameworks.test.ts; testing-lens-e2e.test.ts). They need to be updated together with the fix. Tracked in docs/plans/CSDEVKIT-PARITY-PLAN.md P2.2.
- 主要语言
- TypeScript
- 星标
- 185
- 派生
- 12
- 平均合并
- 7 小时 33 分钟
- 30 天内合并 PR
- 63
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Nimblesite/SharpLsp 的其他 Issue
-
Fix All + Enforce overwrites unsaved edits to .editorconfig / Directory.Build.props / sharplsp.toml未关闭bug
难度 2/5 1-3 小时 新手友好度 74/100
Nimblesite/SharpLsp#644 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
Nimblesite/SharpLsp#641 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
Nimblesite/SharpLsp#640 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
Nimblesite/SharpLsp#639 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
Nimblesite/SharpLsp#510 ·
维护者通常 1 天内回复
查看 Nimblesite/SharpLsp 的全部 Issue
相似的 Issue
-
api bug priority:low ready-for-agent
难度 2/5 1-3 小时 新手友好度 78/100
wondermoney/wondermoney#862 ·
维护者通常 1 天内回复
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 84/100
rootsiemen/seo-agent-tools#70 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
alvinunreal/oh-my-opencode-slim#1971 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
elecnix/bellwether#467 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复