Skip to content

Commit

Permalink
feat(approval-tests): git ignore received.txt files
Browse files Browse the repository at this point in the history
These files are only present when there are failing tests, but they should never been committed to git
  • Loading branch information
murdos committed Oct 23, 2024
1 parent a3b34e7 commit d91ea32
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,6 @@ src/main/resources/config/application-perso.*
# Gradle Develocity Settings
######################
.mvn/.develocity/develocity-workspace-id

# Approvals testing
src/test/resources/**/*.received.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public JHipsterModule build(JHipsterModuleProperties properties) {
.files()
.add(SOURCE.append("test").template("PackageSettings.java"), testDestination.append("PackageSettings.java"))
.and()
.gitIgnore()
.comment("Approval Testing")
.pattern("src/test/resources/**/*.received.txt")
.and()
.build();
//@formatter:on
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ void shouldBuildApprovalTestsModule() {
<scope>test</scope>
</dependency>
"""
);
)
.and()
.hasFile(".gitignore")
.containing("src/test/resources/**/*.received.txt");
}
}

0 comments on commit d91ea32

Please sign in to comment.