Java Test Runner not recording any test output
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 28/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- java, typescript
- Domaine
- testing
Piste de recherche
Le rapport renvoie au Java Test Runner et au build.gradle.kts du projet, avec des tests JUnit exécutés via Gradle. Commencez par reproduire l’exécution des tests et examiner la sortie de Debug Console et du build Gradle ; le travail sera considéré comme terminé lorsque la raison pour laquelle ce projet n’enregistre aucune sortie de test aura été identifiée et que l’exécution réussie des tests aura été rétablie.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
When I first try to execute all JUnit tests, I receive this on the Debug Console:
After cleaning the Gradle project with "./gradlew clean build --refresh-dependencies" and trying to run the tests again, it tells me that my build has failed.
Here is my current build.gradle.kts file:
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id("java")
application
id("org.openjfx.javafxplugin") version "0.1.0"
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
// Use JUnit Jupiter for testing.
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
// https://mvnrepository.com/artifact/org.mockito/mockito-core
testImplementation("org.mockito:mockito-junit-jupiter:5.15.+")
}
// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
sourceSets {
named("main") {
java {
setSrcDirs(listOf("src/main/java"))
}
}
}
}
javafx {
version = "21.0.6"
modules("javafx.controls", "javafx.fxml")
}
application {
// Define the main class for the application.
mainClass = "main"
}
tasks.named<Test>("test") {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}
I tried reloading my project, cleaning java language workspace etc. nothing seemed to change anything.
Important to note is that on a completely different cloned repository with the same gradle configurations, everything works fine.
Would appreciate any help with this, otherwise I'll stick to IntelliJ with the testing.
- Langage dominant
- TypeScript
- Étoiles
- 340
- Forks
- 173
- Merge moyen
- 1 j 19 h
- PR mergées (30 j)
- 18
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de microsoft/vscode-java-test
-
ai-triaged bug high-priority investigating junit maven test-discovery
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
microsoft/vscode-java-test#1915 · 2 commentaires ·
-
ai-triaged bug investigating junit test-discovery test-execution
Difficulté 4/5 3-5 jours Accessibilité débutants 42/100
microsoft/vscode-java-test#1897 · 1 commentaire ·
-
ai-triaged bug gradle high-priority test-execution
microsoft/vscode-java-test#1880 · 2 commentaires · 1 personne assignée ·
-
ai-triaged gradle junit test-execution ux
microsoft/vscode-java-test#1878 · 3 commentaires · 1 personne assignée ·
-
ai-triaged enhancement junit low-priority test-execution ui
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
microsoft/vscode-java-test#1836 · 4 commentaires ·
Toutes les issues de microsoft/vscode-java-test
Issues similaires
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulté 1/5 Moins d'une heure Accessibilité débutants 76/100
-
code-quality refactoring
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
langchain-ai/deepagents#6450 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
vercel/react-tweet#225 ·