Replies: 2 comments 11 replies
-
I have accessed your sonarcloud and I get different results. The ones that I get are very similar to those showed by jest: I am checking the main branch coverage. Maybe are you checking another branch in SonarCloud? |
Beta Was this translation helpful? Give feedback.
-
Evidentemente hay algún problema, que a simple vista no estoy viendo. Donde realmente hay que mirar es en el log de la action que está corriendo los tests antes de subir el informe, pero ahí tampoco veo nada raro porque la cobertura que está generando está bien (la que os sale a vosotros en local). Lo único que se me ocurre es subir el coverage desde local, sin pasar por actions, para intentar ver el problema que hay. Para esto deberíais de correr en local los tests y generar en local el reporte de cobertura. A continuación, necesitareis el cliente de sonar cloud en linea de comando. https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scanners/sonarscanner/ Alguna vez que me ha pasado esto que os ha pasado a vosotros he acabado encontrando el fallo gracias a este cliente. Ya me decís si os sirve para algo. |
Beta Was this translation helpful? Give feedback.
-
Arquisoft/wiq_es05b#167
In the develop branch, after doing the tests for all the routes.js, SonarCloud doesn't link the tests with the files, and it says that there's 0% coverage, even after changing the names in case it didn't pick them up because of that.
In local, if you do "npm test -- --coverage", it says there's a percentage.
(Jordi is the question service)
Beta Was this translation helpful? Give feedback.
All reactions