Skip to content

Commit e6d0e9e

Browse files
authored
Improving the example using the same approach for load testing (#102)
* Improving the example using the same approach for load testing * Improving the example using the same approach for load testing * Improving the example using the same approach for load testing
1 parent 20b337c commit e6d0e9e

File tree

21 files changed

+1829
-1726
lines changed

21 files changed

+1829
-1726
lines changed

.cursor/rules/112-java-maven-documentation.mdc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ When creating a README-DEV.md file for a Maven project, include ONLY the followi
2828
./mvnw dependency:resolve
2929

3030
./mvnw clean validate -U
31+
./mvnw buildplan:list-plugin
3132
./mvnw buildplan:list-phase
33+
./mvnw help:all-profiles
34+
./mvnw help:active-profiles
3235
./mvnw license:third-party-report
3336

3437
# Clean the project

.cursor/rules/templates/java-checklist-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Use the following process to improve the java development in some areas if requi
4848

4949
| Activity | Description | Prompt | Notes |
5050
|----------|------|--------|-------|
51-
| [151-java-performance-jmeter](.cursor/rules/151-java-performance-jmeter.mdc) | Run a peformance test with Jmeter | `Add JMeter performance testing to this project using @151-java-performance-jmeter.mdc` | You could ask the model to create a JMeter based on a RestController/Resource |
51+
| [151-java-performance-jmeter](.cursor/rules/151-java-performance-jmeter.mdc) | Run a peformance test with Jmeter | `Add JMeter performance testing to this project using @151-java-performance-jmeter.mdc` | You could ask the model to create a JMeter based on a RestController/Resource. Example: `Can you create a Jmeter file based on the restcontroller in the path src/test/resources/jmeter/load-test.jmx?` |
5252

5353
### Step 7: Profiling (Async profiler)
5454

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.java linguist-detectable=true

.github/workflows/maven.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@ jobs:
1818
run: cd examples/maven-demo && ./mvnw --batch-mode --no-transfer-progress verify --file pom.xml
1919
- name: Spring Boot build
2020
run: cd examples/spring-boot-demo/implementation && ./mvnw --batch-mode --no-transfer-progress verify -Pjacoco --file pom.xml
21-
- name: Spring Boot startup and API test
22-
run: |
23-
cd examples/spring-boot-demo/implementation
24-
25-
# Make sure the test script is executable
26-
chmod +x test-api.sh
27-
28-
# Run the comprehensive API test script
29-
# Uses 'local' profile and default port 8080
30-
# Set CLEANUP_LOGS=true to remove log files after execution
31-
CLEANUP_LOGS=true ./test-api.sh local 8080
3221
- name: AWS Lambda build
3322
run: cd examples/aws-lambda-hello-world && ./mvnw --batch-mode --no-transfer-progress package --file pom.xml
3423
- name: Azure Function build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Using the Cursor rules is straightforward: simply `drag and drop` the cursor rul
6161

6262
| Activity | Description | Prompt | Notes |
6363
|----------|------|--------|-------|
64-
| [151-java-performance-jmeter](.cursor/rules/151-java-performance-jmeter.mdc) | Run a peformance test with Jmeter | `Add JMeter performance testing to this project using @151-java-performance-jmeter.mdc` | You could ask the model to create a JMeter based on a RestController/Resource |
64+
| [151-java-performance-jmeter](.cursor/rules/151-java-performance-jmeter.mdc) | Run a peformance test with Jmeter | `Add JMeter performance testing to this project using @151-java-performance-jmeter.mdc` | You could ask the model to create a JMeter based on a RestController/Resource. Example: `Can you create a Jmeter file based on the restcontroller in the path src/test/resources/jmeter/load-test.jmx?` |
6565

6666
### Profiling rules (Async profiler)
6767

examples/spring-boot-demo/implementation/JAVA-DEVELOPMENT-GUIDE.md

Lines changed: 0 additions & 92 deletions
This file was deleted.

examples/spring-boot-demo/implementation/README-TESTING.md

Lines changed: 0 additions & 194 deletions
This file was deleted.

0 commit comments

Comments
 (0)