Maven: follow a custom `<testSourceDirectory>`
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 68/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
- Domaine
- build-system, testing
Piste de recherche
Start in src/repo/adapters/maven.ts and inspect how custom source roots trigger the full-validation blocker. Find the Maven adapter tests and synthetic fixtures under tests/repo/, then add cases for a resolvable custom test root, a custom source root, and an unresolved or outside-module test root. Run npm test; done means only the resolvable test-root case avoids fallback, while the other two still fall back for the stated reason.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Part of #89 (the "Follow custom <sourceDirectory> and <testSourceDirectory> roots" step), split out so it can be done on its own.
Today any custom source root makes the Maven adapter fall back to the full suite: src/repo/adapters/maven.ts sets customSourceRoots when a POM's <sourceDirectory> isn't src/main/java or its <testSourceDirectory> isn't src/test/java, and that adds the blocker Maven <pom>: custom source roots require full validation.
The test root alone is the smaller half: it only changes where tests are found, not how modules depend on each other.
Done when:
- A module whose only customization is
<testSourceDirectory>finds its tests there and no longer falls back for that reason. - A custom
<sourceDirectory>still falls back, with the same reason as today. - A
<testSourceDirectory>the adapter can't resolve with certainty (a property such as${project.basedir}/..., or a path outside the module) still falls back. Never guess. - There are synthetic Maven fixtures under
tests/repo/for each case above.
maven.ts is 128 lines. This is a step up from a good first issue: it suits someone who has already merged a PR or two here.
See CONTRIBUTING.md: add a synthetic fixture, run npm test, and sign off commits with git commit -s. Comment here to claim the issue.
- Langage dominant
- TypeScript
- Étoiles
- 0
- Forks
- 4
- Merge moyen
- 18 h 41 min
- PR mergées (30 j)
- 48
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire 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 DiffCI/core
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Planner: splitParts regex is quadratic on a quote followed by many backticks, so the fuzz test fails at randomPeut-être pris @FredApps l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
Les mainteneurs répondent en général sous 1 jour
-
Agent tools: changed_files lists only the new path of a renamed filePeut-être pris @FredApps l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
DiffCI/core#243 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
adapter good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de DiffCI/core
Issues similaires
-
agent-ready area: ui-server priority: p3 type: test
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
schlessera/brain-kit#4249 ·
Les mainteneurs répondent en général sous 1 jour
-
documentation tool triaged
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
can1357/oh-my-pi#19608 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
dependencies tech-debt
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
bcgov/nr-waste-plus#1549 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
blixvip/solana-token-meta#17 ·
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
blixvip/solana-tx-parse#18 ·