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

Code Coverage for integration tests scenarios #223

Merged
merged 2 commits into from
May 7, 2019

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented May 6, 2019

Issue Number

#220

Overview

  • I have ran the wallet server in a separate thread. This way, we prevent the scenario from escaping code coverage :)

Comments

Note: I've also removed the 'Local' network target as it's not really a thing and isn't much use anyway.

@KtorZ KtorZ requested a review from piotr-iohk May 6, 2019 14:06
@KtorZ KtorZ self-assigned this May 6, 2019
@piotr-iohk
Copy link
Contributor

Note: I've also removed the 'Local' network target as it's not really a thing and isn't much use anyway.

So I suppose that the downside is that we no longer have a cardano-wallet-launcher being started as part of any tests on CI...

@KtorZ
Copy link
Member Author

KtorZ commented May 6, 2019

@piotr-iohk Indeed, but that's something we can re-enable fairly easily to make sure we still have some automated verification for this.

@KtorZ
Copy link
Member Author

KtorZ commented May 6, 2019

Should I maybe do it in this PR directly?

@piotr-iohk
Copy link
Contributor

Should I maybe do it in this PR directly?

sure, why not :)

@KtorZ KtorZ mentioned this pull request May 6, 2019
9 tasks
Copy link
Contributor

@piotr-iohk piotr-iohk left a comment

Choose a reason for hiding this comment

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

lgtm 👍 (as there are some discussions around cardano-wallet-launcher, it can be done in another PR if needed)

@KtorZ KtorZ force-pushed the KtorZ/220/debt-coverage-integration-tests branch from 3aecf52 to fc9df49 Compare May 7, 2019 09:11
@KtorZ
Copy link
Member Author

KtorZ commented May 7, 2019

@piotr-iohk Added a "Cardano.LauncherSpec" which just call the launcher using the command-line, and wait for a bit. If the launcher crashes or doesn't start, the test fails.

cancel handle
Right _ ->
expectationFailure
"cardano-wallet-launcher isn't supposed to terminates. \
Copy link
Contributor

Choose a reason for hiding this comment

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

ah, typo (terminates)

Before, we ran this in a separate process which, as a major downside, has been escaping any
form of coverage measurement. Having it ran in another _thread_ solves this problem
@KtorZ KtorZ force-pushed the KtorZ/220/debt-coverage-integration-tests branch from fc9df49 to b053b11 Compare May 7, 2019 11:38
@KtorZ KtorZ merged commit 9b2dfbc into master May 7, 2019
@KtorZ KtorZ deleted the KtorZ/220/debt-coverage-integration-tests branch May 7, 2019 13:01
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.

None yet

2 participants