Edge-home-orchestration-go: Mise à jour du guide de test

Créé le 6 août 2021  ·  3Commentaires  ·  Source: lf-edge/edge-home-orchestration-go

La politique de test devrait indiquer comment installer l'outil de couverture (gocov et gocov-html).

Journal des erreurs lorsque les outils de couverture ne sont pas installés.

t25kim<strong i="9">@t25kim</strong>:~/work/edge-home-orchestration-go$ make test
.
.
--------------------------------------
  build test for internal/...
--------------------------------------
make test-go TEST_PKG_DIRS="internal/..."
make[1]: Entering directory '/home/t25kim/work/edge-home-orchestration-go'
gocov test -v ./internal/... > coverage.out
/bin/sh: 1: gocov: not found
t25kim<strong i="12">@t25kim</strong>:~/work/edge-home-orchestration-go$ go get github.com/axw/gocov/gocov
go get: added github.com/axw/gocov v1.0.0
t25kim<strong i="13">@t25kim</strong>:~/work/edge-home-orchestration-go$ make test
.
.
github.com/lf-edge/edge-home-orchestration-go/internal/restinterface/tls/tls.go  SetHandler                              0.00% (0/1)
github.com/lf-edge/edge-home-orchestration-go/internal/restinterface/tls         -------------------------------------   94.44% (17/18)

Total Coverage: 73.75% (3071/4164)
gocov-html coverage.out > coverage.html
/bin/sh: 1: gocov-html: not found
bug documentation help wanted

Tous les 3 commentaires

La politique de test de @t25kim a été mise à jour en #345

La politique de test de @t25kim a été mise à jour en #345

@tdrozdovsky Désolé. J'ai raté cette RP.
J'ai mis à jour le problème en termes d'installation d'outils de couverture.

je le répare au plus vite

Cette page vous a été utile?
0 / 5 - 0 notes