-
Notifications
You must be signed in to change notification settings - Fork 166
Remove tasty from all test suites except those in Byron
#5352
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
Conversation
ff6ae4f to
e0cf267
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me - I also compared these test logs with ones from before the refactoring, and indeed, all tests are being ran and the nesting is the same.
Thanks for finding and implementing the right solution (instead of my suggested tasty-hspec workaround!)
I guess this supersedes #5349, so we can close it probably.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! 🙌
tasty from cardano-ledger-testtasty from all test suites except those in Byron
47fec54 to
575352f
Compare
Thanks for doing that! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It really makes me happy to see reduction of tasty usage! Thank you for doing this
d8da038 to
1c4be94
Compare
|
I made quite a few changes, mostly as a result of the first one:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!!! Thank you!
Except in Byron, which uses Tasty features that can't be reproduced easily
82f9203 to
ad35b4e
Compare
Description
cardano-ledger-testwas using a mixture ofhspecandtastywhich made it impossible to provide command line options. The mostly mechanical changes converts all thetastytests tohspecones, since we preferhspectotasty.In addition, as a stopgap, I've created a small library called
tasty-compatthat provides the Tasty modules, types and functions used by Ledger, using the functionality of Hspec. It's a drop-in replacement for Tasty, just by changing thebuild-dependsfromtastytotasty-compat.I haven't made it work for Byron, because the test code there uses some advanced features of Tasty, but it's eliminated Tasty everywhere else in Ledger. Now we can use Hspec command-line options with every test executable except the three in Byron.
Checklist
CHANGELOG.mdfiles updated for packages with externally visible changes.NOTE: New section is never added with the code changes. (See RELEASING.md).
.cabalandCHANGELOG.mdfiles when necessary, according to theversioning process.
.cabalfiles updated when necessary.NOTE: If bounds change in a cabal file, that package itself must have a version increase. (See RELEASING.md).
scripts/fourmolize.sh).scripts/cabal-format.sh).scripts/gen-cddl.sh)hie.yamlupdated (usescripts/gen-hie.sh).