Skip to content

Fix tests following additive feature changes#450

Merged
DanGould merged 2 commits intopayjoin:masterfrom
DanGould:fix-dlh
Jan 2, 2025
Merged

Fix tests following additive feature changes#450
DanGould merged 2 commits intopayjoin:masterfrom
DanGould:fix-dlh

Conversation

@DanGould
Copy link
Copy Markdown
Contributor

@DanGould DanGould commented Jan 1, 2025

#430 made some features additive, but didn't properly address the tests to run under the minimal requirements nor the scripts to run the tests.

This fixes that

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Jan 1, 2025

Pull Request Test Coverage Report for Build 12577498886

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.4%) to 61.734%

Totals Coverage Status
Change from base Build 12563924492: 0.4%
Covered Lines: 2912
Relevant Lines: 4717

💛 - Coveralls

@DanGould DanGould requested a review from nothingmuch January 1, 2025 22:56
1. payjoin/_danger-local-https not required in v1 integrations
2. payjoin/contrib/test.sh was not running v1 integration tests since it
   only specifies send,receive features

This was accidentally disabled in fdcc566

Note: this change is not required for payjoin-cli/tests/e2e because
there is both a v1 and v2 _danger-local-https in payjoin-cli.
This feature is required to run the v2 test suite and went overlooked in
fdcc566
Comment thread payjoin/contrib/test.sh
cargo test --locked --package payjoin --verbose --all-features --lib
cargo test --locked --package payjoin --verbose --features=send,receive --test integration
cargo test --locked --package payjoin --verbose --no-default-features --features=send,receive,_danger-local-https,v2 --test integration
cargo test --locked --package payjoin --verbose --no-default-features --features=send,receive,_danger-local-https,v2,io --test integration
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe we want to use https://github.com/frewsxcv/cargo-all-features instead of manually enumerating feature combinations? if so then in followup

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That should work

@DanGould DanGould merged commit 5bb9c2d into payjoin:master Jan 2, 2025
@DanGould DanGould deleted the fix-dlh branch January 2, 2025 17:22
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.

3 participants