bcgov / aries-vcr-issuer-controller

indy-catalyst-agent
Apache License 2.0
8 stars 31 forks source link

Add Unittest framework #51

Closed Jsyro closed 3 years ago

Jsyro commented 3 years ago

We pulled this repo for the mines digital trust team and added a unit test suite.

It is by no means complete (about 45% percent code coverage), but we wanted to introduce into the template to be iterated on by anyone else using this repo.

Current testing is limited to:

Liveness checks host/issue-credential call spins up two ProcessingThreads ProcessingThreads call ACAPy Callback has proper topic recognition (empty bodies)

Github Action

We have also incorporated this testing suite into a github action that reports results to code climate, found here. https://github.com/bcgov/mines-digital-trust/blob/develop/.github/workflows/code_climate.yml

Other Changes

I found the app needs to be imported a module, so i've added appropriate init.py files and have moved the entrypoint (and other file paths).

ianco commented 3 years ago

@Jsyro I've merged your PR but would still like an update to the README, thanks!