[jvm] duplicated filename creates exceptions when updating snapshot
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the snapshot update with tests that use the same filename in different packages. Trace how snapshot files are selected and how inline assertions are located when testPlanExecutionFinished runs. Done means duplicate filenames resolve to the correct content and the overwrite assertion completes without the reported exception.
Written by the indexing model from the issue text.
Description
There is a possible issue that I encountered with duplicated file names of tests. (in different packages). The assertion was marked for overwrite with toBe_TODO() and the following exception was thrown:
[com.diffplug.selfie.junit5.SelfieTestExecutionListener] threw exception for method: testPlanExecutionFinished(org.junit.platform.launcher.TestPlan@65b49da9) java.lang.AssertionError: Expected to find inline assertion on line ...
With some debugging i found that there was a file with a identical name red with different content instead of the correct one, before the exception was thrown.
Also I'm not sure if this a known limitation or a bug
- Dominant language
- Kotlin
- Stars
- 101
- Forks
- 18
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from diffplug/selfie
-
Selfie JVM Snapshot Garbage Collection is overly zealous when using multiple test suites in gradle Openbug jvm
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
enhancement jvm
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
bug docs jvm
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
-
bug jvm py
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
bug jvm
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ankidroid/Anki-Android#21999 ·
-
Doc: Oppdater README Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area:modals intermittent needs-repro platform:android type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Android feature/error-tracking feature/mobile react-native team/client-libraries
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
PostHog/posthog-js#5061 · 2 comments ·
-
0.7.0 area/sample area/testing bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100