Maven forkCount and reuseForks apparently not respected
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- java, vscode
- Ambito
- devtools, testing-qa
Direzione di ricerca
Riproducete il comportamento con il pom.xml del modulo, le impostazioni di maven-surefire-plugin e il test runner di VS Code, confrontando l’esecuzione di Maven tramite CLI con l’esecuzione tramite VS Code. Verificate se il runner di VS Code delega a Maven e come gestisce forkCount, reuseForks e le esclusioni dei test. Il lavoro è completato quando il comportamento supportato o la limitazione è stata stabilita e la configurazione o il workaround richiesto è chiaramente documentato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello,
I am using systemstubs library.
As its author said, because of the way the library works, tests using it must be running in a forked vm, one per test.
I have been able to make this work in maven.
I have a multi module pom.xml. In my specific module pom.xml I configured sure-fire as follows:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<configuration>
<forkCount>2.5C</forkCount>
<reuseForks>false</reuseForks>
</configuration>
</plugin>
This makes tests run by maven in cli run correctly.
However, when I run tests in vs code, they behave exactly as like they did when maven had not been configured with 1 fork, not reusing forks.
it seems as if not only is vs code not forking vms, it is running even methods in paralel, because tests in the same class are conflicting, while they should run sequentially in one thread, one after the other, in a class exclusive jvm process as maven is doing.
This makes me believe that either
- vscode has its own runner and does not delegate to maven the test running OR
- Some how delegation is ignoring the specific configuration in the module's pom.xml.
I have been searching a way to let vscode test runner know tthat either it should fork jvm process and run one test in each vm or it should delegate and follow what is specified in pom.xml.
Another desired and may be faster solution is to find (something I haven't found either) a way of asking vscode to just ignore these tests when running tests, so that we stop having failures on the test result.
Can you please provide me with information on how to proceed?
- Lingua principale
- TypeScript
- Stelle
- 340
- Fork
- 173
- Merge medio
- 1g 2h
- PR unite (30g)
- 17
Guida per i contributori
Apri 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 microsoft/vscode-java-test
-
ai-triaged bug investigating junit test-discovery test-execution
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
microsoft/vscode-java-test#1897 · 1 commento ·
-
ai-triaged bug gradle high-priority test-execution
microsoft/vscode-java-test#1880 · 2 commenti · 1 assegnatario ·
-
ai-triaged gradle junit test-execution ux
microsoft/vscode-java-test#1878 · 3 commenti · 1 assegnatario ·
-
ai-triaged enhancement junit low-priority test-execution ui
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
microsoft/vscode-java-test#1836 · 4 commenti ·
-
ai-triaged enhancement gradle investigating junit low-priority test-reporting
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
microsoft/vscode-java-test#1824 · 1 commento ·
Tutte le issue di microsoft/vscode-java-test
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
copse-dev/agent-pane#2953 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Bug]: Matrix progress drafts fail with "Matrix runtime not initialized" during tool activity Apertabug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
calcite-components needs triage refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Esri/calcite-design-system#15203 ·