Skip to content

[Feature Request] Opt-In to write Snapshots to other source roots #480

@Obirah

Description

@Obirah

I am using selfie to perform snapshot testing in Spring integration tests for Thymeleaf templates. In order to cleanly organize my test code, I have a separate (src/integrationTest/kotlin) source set for my integration tests that start a Spring test app.

When adding this source set to the otherSourceRoots value in SelfieSettings, selfie works nicely. However, (as intended and documented) selfie does not write Snapshot files to that source set but rather to src/test/kotlin.

I would love to see an option that allows to opt-in to writing the snapshots to the source set that the test is located in, so that other developers can easily find snapshots that I store and don't have to look for them in src/test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions