Skip to content

Inline snaphots do not update when ran in vs code or terminal with swift tests when using new swift-testing #929

@doozMen

Description

@doozMen

Describe the bug
See reproducer project https://github.com/doozMen/swift-snapshot-xcodebuild

To Reproduce

The reproducer project has description in readme.md. But in short

  1. make an inline snaphot test using swift testing
  2. set recording to .all or parameter record: true
  3. run swift test

    note: nothing happens

  4. run `xcodebuild -scheme <#package#> test -destination "platform=macOS" -quiet

note: test is updated

Expected behavior

Both inline and file tests should update, but they do not

Environment

  • swift-snapshot-testing version 1.17.6
  • Xcode 16.1
  • Swift 6.0.2
  • OS: macOS 15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions