Skip to content

Commit

Permalink
add spring profile test to github action config
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpochat committed Aug 3, 2021
1 parent bc90df6 commit c3f693d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ jobs:
with:
java-version: 14
- name: Build, test, and coverage report with Maven, Jacoco and Coveralls
run: mvn clean test jacoco:report coveralls:report -DrepoToken=${{ secrets.COVERALLS_REPO_TOKEN }}
run: mvn -Dspring.profiles.active=test clean test jacoco:report coveralls:report -DrepoToken=${{ secrets.COVERALLS_REPO_TOKEN }}
working-directory: ./core

3 changes: 0 additions & 3 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@
<version>${spring-security-version}</version>
</dependency>


<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
Expand All @@ -273,14 +272,12 @@
<version>${javamail-version}</version>
</dependency>


<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-hibernate5</artifactId>
<version>${jackson-version}</version>
</dependency>


<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
}, executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD)
/**
* Uses the {@link MockPaymentTransactionService} implementation for {@link PaymentTransactionService} bean,
* which rejects the payment if an order contains 1 order item,
* activated by "test" Spring profile.<br>
*
* {@link MockPaymentTransactionService} rejects the payment if an order contains 1 order item,
* and accepts the payment id an order contains more than 1 item.
*/
public class TestPaymentController {
Expand Down

0 comments on commit c3f693d

Please sign in to comment.