Skip to content

Commit

Permalink
Merge pull request #6 from NHDaly/nhd-log-mismatched-file
Browse files Browse the repository at this point in the history
Log the name of the file that had the mismatched content
  • Loading branch information
NHDaly authored Nov 20, 2023
2 parents 650b93f + 06b6808 commit c4dab07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SnapshotTesting"
uuid = "cf213a48-8697-4c15-82cb-081f2086cf9e"
authors = ["Nathan Daly <[email protected]> and contributors"]
version = "0.1.0"
version = "0.1.1"

[deps]
DeepDiffs = "ab62b9b5-e342-54a8-a765-a90f495de1a6"
Expand Down
1 change: 1 addition & 0 deletions src/snapshots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function _recursive_diff_dirs(expected_dir, new_dir; allow_additions)
new_content = read(new_path, String)
@test new_content == expected_content
if new_content != expected_content
println("Found non-matching content in `$file`.")
display(DeepDiffs.deepdiff(expected_content, new_content))
end
end
Expand Down

0 comments on commit c4dab07

Please sign in to comment.