Skip to content

ultimecreation/Projet5-Testez-une-application-full-stack-springboot-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yoga-app

  • 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

Tests backend

yoga-app-backend-coverage

Frontend unit and integration tests

yoga-app-front-coverage

Fullstack Cypress coverage

yoga-app-cypress-coverage

Local project setup

Setup Mysql and PhpMyAdmin

SQL script for creating the schema is available at the root level ressources/sql/script.sql sql-and-json

By default the admin account is:

frontend

  • Clone this repository on your local machine
  • Navigate to your front folder and run the command npm install in your integrated terminal

front_1

  • You can start the project with the follwing command npm start.

  • You're project is available at http://localhost:4200/

    front_2

backend

  • Navigate to your back folder.

  • Find your main app file located at back/src/main/java/com/openclassrooms/starterjwt/SpringBootSecurityJwtApplication.java and click on the Run button or on the arraow on the top right corner.

    back_2

Testing

Backend tests

  • open your integrated terminal and navigate to your back folder
  • run the command mvn clean test

Frontend tests

Several commands are available :

  • npm run e2e for e2e tests
  • npm run e2e:coverage for e2e tests coverage (the html file is available at front/coverage/lcov-report/index.html
  • npm run test to launch unit tests only one time
  • npm run test:watch for development, the tests are replayed after each change in the code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published