Skip to content

Commit

Permalink
Merge pull request #11190 from murdos/gitignore-approvals-received-files
Browse files Browse the repository at this point in the history
feat(approval-tests): git ignore received.txt files
  • Loading branch information
pascalgrimaud authored Oct 24, 2024
2 parents e1772c0 + d91ea32 commit 7e4c25f
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 7e4c25f

Please sign in to comment.