- Pour ce projet,j'ai été chargé de :
- réaliser des tests unitaires et fonctionnels sur l'application (controllers,security,services....)
- Réaliser les tests E2E avec cypress
- You can follow this tutorial
- You can also use Xampp to get mysql and phpMyAdmin easily
- Or, if you have Docker installed on your machine, you can follow this 5 min tutorial
- update the backend environment file at
back/src/main/resources/application.properties
SQL script for creating the schema is available at the root level ressources/sql/script.sql
By default the admin account is:
- login: yoga@studio.com
- password: test!1234
- Clone this repository on your local machine
- Navigate to your
frontfolder and run the commandnpm installin your integrated terminal
-
You can start the project with the follwing command
npm start. -
You're project is available at http://localhost:4200/
-
Navigate to your
backfolder. -
Find your main app file located at
back/src/main/java/com/openclassrooms/starterjwt/SpringBootSecurityJwtApplication.javaand click on theRunbutton or on the arraow on the top right corner.
- open your integrated terminal and navigate to your
backfolder - run the command
mvn clean test
Several commands are available :
npm run e2efor e2e testsnpm run e2e:coveragefor e2e tests coverage (the html file is available atfront/coverage/lcov-report/index.htmlnpm run testto launch unit tests only one timenpm run test:watchfor development, the tests are replayed after each change in the code