Skip to content

Latest commit

 

History

History
78 lines (60 loc) · 1.4 KB

File metadata and controls

78 lines (60 loc) · 1.4 KB

How to Run Tests

Prerequisites

Make sure Java is installed (see SETUP.md for installation instructions).

Basic Commands

Run all tests:

./gradlew test

Run a specific test class:

./gradlew test --tests CustomersTest
./gradlew test --tests AuthenticationTest
./gradlew test --tests TransactionsTest

Run tests with verbose output:

./gradlew test --info

Run tests and see output in real-time:

./gradlew test --info --console=plain

View Test Results

After running tests, view the HTML report:

open build/reports/tests/test/index.html

Or navigate to: build/reports/tests/test/index.html in your browser.

Other Useful Commands

Build the project (compiles code and runs tests):

./gradlew build

Clean and rebuild:

./gradlew clean build

Just compile (without running tests):

./gradlew compileJava

Check what tasks are available:

./gradlew tasks

Troubleshooting

If you get "Permission denied" on gradlew:

chmod +x gradlew

If Java version is wrong:

Check your JAVA_HOME:

echo $JAVA_HOME
java -version

If tests fail due to API connection:

  • Make sure you're using the correct API key in test files
  • Check if you need to update the test API endpoint (sandbox vs production)
  • Some tests may require network access to the Fluidpay API