Skip to content

Commit

Permalink
Move snapshots to subfolder and disable formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
leonard84 committed Mar 10, 2024
1 parent 540710c commit 5c6911e
Show file tree
Hide file tree
Showing 45 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spock-specs/specs.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ tasks.named("test", Test) {
testLogging.events 'standard_out'
testLogging.events 'standard_error'
maxParallelForks = 1
systemProperty "spock.snapshots.rootPath", "src/test/resources"
systemProperty "spock.snapshots.rootPath", "src/test/resources/snapshots"
if (project.hasProperty("updateSnapshots")) {
systemProperty("spock.snapshots.updateSnapshots", "true")
useJUnitPlatform {
Expand Down
8 changes: 8 additions & 0 deletions spock-specs/src/test/resources/snapshots/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Disable formatting for snapshot data

[*]
indent_style = unset
indent_size = unset
end_of_line = unset
insert_final_newline = false
trim_trailing_whitespace = false

0 comments on commit 5c6911e

Please sign in to comment.