Skip to content

Commit ab764dd

Browse files
committed
AMP-187 Change to use gradle instad of gradlew
1 parent dd5c7eb commit ab764dd

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

apiTest/apiTest_README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ Before running the tests, ensure you have the following installed and configured
4040
cd apiTest
4141

4242
# Run all tests
43-
../gradlew test
43+
gradle test
4444

4545
# Run tests with more verbose output
46-
../gradlew test --info
46+
gradle test --info
4747

4848
# Run tests with debug output
49-
../gradlew test --debug
49+
gradle test --debug
5050
```
5151

5252
### From the apiTest Directory
5353

5454
```bash
5555
# If you're already in the apiTest directory
56-
../gradlew test
56+
gradle test
5757
```
5858

5959
### What Happens When You Run Tests
@@ -71,10 +71,10 @@ cd apiTest
7171

7272
```bash
7373
# Run a specific test class
74-
../gradlew test --tests "RootApiTest"
74+
gradle test --tests "RootApiTest"
7575

7676
# Run a specific test method
77-
../gradlew test --tests "RootApiTest.root_endpoint_should_be_ok"
77+
gradle test --tests "RootApiTest.root_endpoint_should_be_ok"
7878
```
7979

8080
## Test Reports
@@ -102,15 +102,15 @@ These XML reports are useful for CI/CD integration.
102102
### Issue: "Could not start Gradle Test Executor 1: Failed to load JUnit Platform"
103103

104104
**Solution:** This should be resolved with the current configuration. If you see this error:
105-
1. Clean the build: `../gradlew clean`
106-
2. Rebuild: `../gradlew build`
105+
1. Clean the build: `gradle clean`
106+
2. Rebuild: `gradle build`
107107

108108
### Issue: "no main manifest attribute, in /app/apiTest-0.0.999.jar"
109109

110110
**Solution:** This means the Docker build context is wrong. Ensure:
111111
1. The `docker-compose.yml` has `context: ..` (builds from root directory)
112112
2. The root project's `bootJar` is built before Docker build
113-
3. Run: `../gradlew buildRootBootJar` manually if needed
113+
3. Run: `gradle buildRootBootJar` manually if needed
114114

115115
### Issue: Container exits with code 1
116116

apiTest/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ dockerCompose {
7979
tasks.register('buildRootBootJar', Exec) {
8080
description = "Builds the root project's bootJar"
8181
workingDir = projectDir.parent
82-
executable = "${projectDir.parent}/gradlew"
82+
executable = "gradle"
8383
args = ['bootJar']
8484
}
8585

0 commit comments

Comments
 (0)