Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration test setup #152

Merged

Conversation

psteniusubi
Copy link
Contributor

@lenkan @rodolfomiranda

This is a suggestion of a pattern how to setup integration tests

There are three helper methods getOrCreateClients, getOrCreateIdentifier and getOrCreateContact to take care of the initial setting up of Signify clients, Keri identifiers and Oobi resolution before running actual integration tests.

I implemented two complete integration tests as examples: singlesig-ixn.test.ts and singlesig-rot.test.ts

getOrCreateClients allows creating Signify clients with a random or pre-defined secret. The environment variable SIGNIFY_SECRETS allows passing pre-defined secrets from the command line.

Copy link

codecov bot commented Dec 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4afcb12) 81.01% compared to head (e6e544f) 81.01%.

Additional details and impacted files
@@             Coverage Diff              @@
##           development     #152   +/-   ##
============================================
  Coverage        81.01%   81.01%           
============================================
  Files               46       46           
  Lines             4187     4187           
  Branches          1028     1028           
============================================
  Hits              3392     3392           
  Misses             763      763           
  Partials            32       32           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@pfeairheller pfeairheller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a nice improvement

@pfeairheller pfeairheller merged commit 8be00bf into WebOfTrust:development Dec 1, 2023
@psteniusubi psteniusubi deleted the feat-integration-test-setup branch December 1, 2023 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants