Move the unit-test fixture to test-workspace and add cql-test-content as a submodule
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 70/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- git, typescript
- Ambito
- developer-experience, testing
Direzione di ricerca
Start with .vscode-test.js, .gitignore, .vscode/launch.json, .vscodeignore, and the contributor docs named in the issue. Move the listed fixture files verbatim into test-workspace/, add cql-test-content as a submodule, and update the launch and packaging references. Done means simple-project has no references, unit tests work without the submodule, and the launch opens test-content with its expected results documented.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Background
src/__test__/resources/simple-project is both the npm test workspace and the project
the "Run Extension" launch config opens. It was put together early: one real library
(SimpleMeasure), a one-line AnotherMeasure, FHIRHelpers/FHIRCommon and a few test cases.
It doesn't cover most of what the extension does now: validation, parameters, debugging,
layout deviations, formatting, compile and runtime errors.
cqframework/cql-test-content is now a
complete IG-layout CQL project made for this. It has ten libraries and 35 test cases, and
every expected result is in EXPECTED.md. This ticket splits the two roles:
- Unit tests keep a small, stable fixture inside this repo, so
npm testnever needs
the submodule. - Manual UAT and the "Run Extension" launch use cql-test-content as a git submodule.
Scope
1. Move the unit-test fixture (verbatim)
git mv the contents of src/__test__/resources/simple-project/ to
src/__test__/resources/test-workspace/, with no content changes:
input/cql/:SimpleMeasure.cql,AnotherMeasure.cql,FHIRHelpers.cql,
FHIRCommon.cql,cql-options.jsoninput/tests/config.jsoninput/tests/Measure/SimpleMeasure/{1111,2222,3333,91ec11b5-…,shared}/input/tests/Measure/AnotherMeasure/{3333,4444}/input/tests/Measure/LibWithTests/1111/.gitkeep.vscode/launch.json
Then update the three references:
| File | Change |
|---|---|
.vscode-test.js |
workspaceFolder: './src/__test__/resources/test-workspace' |
.gitignore |
src/__test__/resources/test-workspace/input/tests/results |
.vscode/launch.json |
see step 2 ("Run Extension") |
Then remove simple-project/, which is empty after the move. About 13 test files assert on
the fixture's library and case names. They reach it through the workspace folder, not by
path, so they shouldn't change.
2. Add cql-test-content as a submodule
git submodule add https://github.com/cqframework/cql-test-content.git test-content,
pinned to the currentmain.- Point "Run Extension" in
.vscode/launch.jsonat${workspaceFolder}/test-content(the
IG root) instead ofsimple-project. - Add
test-content/to.vscodeignore, so the VSIX doesn't include it. - Add a short note to the contributor docs:
- run
git submodule update --initafter cloning; - "Run Extension" opens
test-content; - expected results are in
test-content/EXPECTED.md.
- run
Out of scope
- CI
submodules: true:npm testdoesn't use the submodule. Add it when an LS-backed test
first needs it. - LS-backed smoke tests against cql-test-content: a follow-up.
- Extension bugs cql-test-content exposed: separate tickets.
cql-config.schema.jsonlacksresultFormat,flatResultsInSubfolderand several
parameter types.- The test-folder match is case-sensitive, so lowercase
measure/is flagged. - The
validateTestCaseresult types don't match the LS (numbers, not strings).
Acceptance criteria
-
npm testpasses locally and in CI, with no submodule checked out. -
src/__test__/resources/simple-project/no longer exists, and nothing references it
(git grep simple-projectis empty). - The files moved into
test-workspace/are byte-for-byte unchanged (git diff -M
shows only renames). - "Run Extension" opens
test-content/. The CQL Explorer lists the ten libraries.
Execute CQL onCMS10FHIRSampleScreeningmatches itsEXPECTED.mdsection. -
npx @vscode/vsce lsshows notest-content/files. - A fresh
git clone --recurse-submodulesbuilds and runs "Run Extension".
- Lingua principale
- TypeScript
- Stelle
- 14
- Fork
- 8
- Merge medio
- 1g 22h
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la 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 cqframework/vscode-cql
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
cqframework/vscode-cql#201 ·
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
cqframework/vscode-cql#199 ·
-
bug documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
cqframework/vscode-cql#198 ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
cqframework/vscode-cql#202 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 40/100
cqframework/vscode-cql#200 ·
Tutte le issue di cqframework/vscode-cql
Issue simili
-
bug engine
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
frostney/GocciaScript#2539 ·
I maintainer di solito rispondono entro 1 giorno
-
Fish Audio Live calls fail to start: `Unknown callback "onNotice"` from @fishaudio/agent-clientForse già presa @NEAL3K l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
milind-soni/OpenMausBot#8345 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ardia-browser/ardia#6142 ·
I maintainer di solito rispondono entro 1 giorno
-
feature
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
ChromeDevTools/chrome-devtools-mcp#3689 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Team (channel) avatars render noticeably smaller than agent avatars in the sidebar gridApertabug from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nightly-labs/openbot#21303 ·
I maintainer di solito rispondono entro 1 giorno