https://github.com/jimlynchcodes/java-maven-serverless-aws-demo
https://github.com/jimlynchcodes/java-maven-serverless-aws-demo
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jimlynchcodes/java-maven-serverless-aws-demo
- Owner: JimLynchCodes
- License: mit
- Created: 2023-09-10T17:54:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-18T15:07:06.000Z (over 2 years ago)
- Last Synced: 2025-02-04T11:59:36.673Z (over 1 year ago)
- Language: Java
- Size: 76.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Java Maven Serverless AWS Demo
Example of a Java API project!
# Commands
Commands for working with this project.
Note there are two options for each command:
1) Run commands in the terminal command line
2) Run as IDE configuration in an IDE like Eclipse or Jetbrains IDEA.
## Build Project
```bash
mvn build
```
Or create a _Run Configuration_ for "Maven build" using your desired JRE version.
## Run Unit Tests
Tests here are using JUnit library.
```bash
mvn test
```
Or create a _Run Configuration_ for "JUnit run tests" selecting your test directory.
Run unit tests to check that your functions work as expected!
## Run Unit Tests With Code Coverage
Code coverage reports can show you where you are missing tests!
Add this plugin to your pom.xml:
```xml
org.jacoco
jacoco-maven-plugin
0.7.9
prepare-agent
generate-code-coverage-report
test
report
```
Then run the normal test command:
```bash
mvn test
```
Then view the HTML report under ./target/site/jacoco/*.html
## Run Mutation Tests
Mutation tests can show you where you are missing assertions!
Check the [PIT tests maven quick start](https://pitest.org/quickstart/maven/) guide for more info on running these tests.
Or create a _Run Configuration_ for "PIT mutation tests" selecting your test directory.
## Run E2e Tests
End-to-end testing can give you confidence that everything works together properly!
Run e2e Java tests using [Rest-Assuredh](https://rest-assured.io/)
## Serverless CLI
Scaffolded with the [serverless cli](https://www.serverless.com/) tool and the "java-maven-aws" template.