Skip to content

Latest commit

 

History

History
74 lines (46 loc) · 1.88 KB

Development.md

File metadata and controls

74 lines (46 loc) · 1.88 KB

FightBots

This documentation is dedicated to compiling and running the code. For a more detailed documentation please check the wiki.

Cum executam si cum facem debug

Setup

  • Intai de toate, trebuie sa rulam yarn install in folderul backend si frontend
  • Pentru a lucra cu teste, folosim extensia Jest Runner

Operatiuni backend:

Vom presupune cand lucram la backend ca terminalul se afla la fiecare comanda cu cwd in backend

Run backend (Deocamndata doar debug-friendly)

  • yarn build
  • yarn serve (serve nu face rebuild)

Run backend tests

Toate testele:

  • yarn test

Teste specifice:

  • Deasupra testului / suitei apasati Run

Debug backend

  • Requirement: VS-Code extension: Jest Runner
  • yarn build (este nevoie sa avem folderul dist actualizat)
  • Pornim launch configuration: Debug Backend

Debug backend tests

  • Requirement: VS-Code extension: Jest Runner
  • yarn build (este nevoie sa avem folderul dist actualizat)
  • Deasupra testelor / suitelor, apasati Debug

Operatiuni frontend:

Vom presupune cand lucram la frontend ca terminalul se afla mereu in cwd la adresa frontend

Run frontend (Debug)

  • yarn serve

Run frontend tests

Toate testele:

  • yarn test

Teste specifice:

  • Deasupra testului / suitei apasati Run

Debug frontend (Chrome, client-side)

  • Trebuie sa avem serviciul (procesul de nodeJS) care ruleaza frontend-ul in picioare
  • Activati serviciul cu yarn serve
  • Avem 3 metode de a da debug:
  • Developer Console din chrome/firefox, pentru plain debugging (sursele se afla in webpack -> src)
  • Chrome extension Vue Dev Tools
  • Pornim launch configuration vuejs: chrome

Debug frontend tests

  • Requirement: VS-Code extension: Jest Runner
  • Deasupra testelor / suitelor, apasati Debug