clear && ./gradlew :api:bootRun --args="--spring.profiles.active=local"
clear && ./gradlew :site:bootRun --args="--spring.profiles.active=local"
Deployed: here
npx playwright codegen https://tdd-playwright-example-server.herokuapp.com
Running tests in all browsers: chromium, firefox, webkit
npx folio -- param screenshotOnFailure
Running tests in select available browsers:
npx folio --param browserName=chromium screenshotOnFailure
docker volume create --name sonarqube_data
docker volume create --name sonarqube_logs
docker volume create --name sonarqube_extensions
docker run --rm -p 9000:9000 -v sonarqube_extensions:/opt/sonarqube/extensions sonarqube:8.7.1-community
- Navigate to
http://localhost:9000
- Click
Create a project
- Add a
Project key
, (can be any value). Dispay name
should automatically be filled with theProject key
value. Change theDisplay name
if desired.- Click
Setup
- Enter a
Token name
, and clickGenerate
. Make note of the generated token. - Click
Continue
. - Select the appropriate
build technology
. This project usesGradle
. - Configure your
build
to includesonarqube
and run the provided command to run thesonarqube
. - Run in shell:
./gradlew sonarqube \ -Dsonar.projectKey=${projectKey} \ -Dsonar.host.url=http://localhost:9000 \ -Dsonar.login=${generatedToken}
- Optional: Building sonarqube on a specific app is possible by prefixing the app name:
./gradlew :site:sonarqube \
[etc..]
- Heroku provides 550 free dyno hours each month. For personal development, this allowance provides more than 17 hours a day in a 31 day month of development usage. To optimize this allowance, Heroku automatically puts the dyno to sleep after 30 minutes of no web traffic.
- If a sleeping web dyno receives web traffic, it will become active again after a short delay (assuming the Heroku account has free dyno hours available).
- When executing automated tests in CI/CD pipeline (ie. e2e), be mindful that sleep periods or test reruns may be needed upon running the first request on the dyno to allow the application to wake.
- Click here for more information about dyno sleeping.