Overview
Here are described the steps to write karate integration tests.
StepsĀ
Project Setup
If you want to create module from scratch then create you maven module within folio-integration-tests folder like acquisitions (See also pom.xml file from folio-integration-tests/acquisitions/pom.xml for example)
...
Code Block | ||
---|---|---|
| ||
@BeforeAll public void financeApiTestBeforeAll() { runFeature("classpath:domain/mod-finance/finance-junit.feature"); } @AfterAll public void financeApiTestAfterAll() { runFeature("classpath:common/destroy-data.feature"); } |
Run integration test
Code Block | ||||
---|---|---|---|---|
| ||||
mvn test -Dtest=FinanceApiTest -pl acquisitions |
Where instead of "-pl acquisitions" argument you should use your own project name.
Result of Jenkins after CI build
...