Test Explorer 'fsharp' tag is guessed from the test name: real Expecto tests are untagged, C# 'Property' tests are tagged F#
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 65/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- csharp, typescript
- Ambito
- developer-experience, testing
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 185
- Fork
- 12
- Merge medio
- 7h 33m
- PR unite (30g)
- 63
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Nimblesite/SharpLsp
-
Fix All + Enforce overwrites unsaved edits to .editorconfig / Directory.Build.props / sharplsp.tomlApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Nimblesite/SharpLsp#644 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Nimblesite/SharpLsp#641 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Nimblesite/SharpLsp#640 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Nimblesite/SharpLsp#639 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Nimblesite/SharpLsp#510 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Nimblesite/SharpLsp
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
audacity/audacity.github.io#118 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
crxjs/chrome-extension-tools#1261 ·
-
Resources: Update work of fuzhouForse già presa @rmt-svc l’ha presa oggi. Apertaresources
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
railmapgen/rmp-gallery#4245 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
mike-north/AgentMonitors#717 ·
I maintainer di solito rispondono entro 1 giorno