-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Description
hi, I have found that when we have multiple snapshot testing within one unit test, like here:
test_that("test 1", {
# some code
expect_snapshot_file()
# some other code
expect_snapshot_file()
})
the lines executed in the second snapshot testing appear as not covered. If I take that chunk out and put it as a separate unit test, then magically the overall coverage increases:
test_that("test 1", {
# some code
expect_snapshot_file()
})
test_that("test 2", {
# some other code
expect_snapshot_file()
})
Is this the expected behaviour? Did anyone else see a similar pattern?
Thank you.
Metadata
Metadata
Assignees
Labels
No labels