mercredi 3 février 2021

How to get coverage from external end-to-end testing

We / Our QA teams use an external testing framework, cucumber on java, to write end-to-end unit tests for projects across various languages. We would like to measure code coverage from running such tests for our Go servers.

E.g. for our python servers, we:

  1. Run servers using coverage:
coverage run ./src/server.py
  1. Run the integration / E2E tests as a java application

  2. Kill the python server after testing application is done

  3. Generate test coverage reports using

coverage html

Is there something similar available on Go? If not, what are the possible alternatives we should consider?

Aucun commentaire:

Enregistrer un commentaire