Skip to content

specmatic/specmatic-inventory-api-wsdl-java

Repository files navigation

WSDL Java Sample Project

Run Contract Tests

1. Using Specmatic-JUnit Helper

For Unix based systems and Windows Powershell:

./gradlew test --tests="io.specmatic.inventory.ContractTests"

View Specmatic Test Reports

After running the contract tests, you can view the test reports generated by Specmatic in the following location: build/reports/specmatic/html/index.html

For Windows Command Prompt:

gradlew test --tests="io.specmatic.inventory.ContractTests"

2. Using TestContainers

For Unix based systems and Windows Powershell:

./gradlew test --tests="io.specmatic.inventory.ContractTestsUsingTestContainer"

For Windows Command Prompt:

gradlew test --tests="io.specmatic.inventory.ContractTestsUsingTestContainer"

3. Using Docker

For Unix based systems and Windows Powershell, execute the following commands in separate terminals:

# Start the backend service
./gradlew bootRun
# Run contract tests
docker run --rm --network host -v "$(pwd):/usr/src/app" specmatic/specmatic test --port=8095

For Windows Command Prompt, execute the following commands in separate terminals:

# Start the backend service
gradlew bootRun
# Run contract tests
docker run --rm --network host -v "%cd%:/usr/src/app" specmatic/specmatic test --port=8095

For More Info

About

Specmatic Order Inventory SOAP Service In Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •