3

I have files in the folder: coverage/lcov.info

and I will upload the file using codecov uploader version 0.2.4 in CI Gitlab (using flutter) but got error

There was an error running the uploader: No coverage files located, please try use `-f`, or change the project root with `-R`

how can i fix this? please help

enter image description here

Rohmatul Laily
  • 371
  • 3
  • 15

1 Answers1

1

Probably you didn't create any coverage report before. Try:

pip install codecov
pip install pytest-cov
pytest --cov=./ --cov-report=xml
codecov
Eftal Gezer
  • 191
  • 1
  • 8