-
Notifications
You must be signed in to change notification settings - Fork 59
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
Splitting large tests #2090
base: main
Are you sure you want to change the base?
Splitting large tests #2090
Conversation
b62d973
to
0954296
Compare
feed928
to
66c4419
Compare
66c4419
to
0709de2
Compare
9110e50
to
dc75077
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.
Splitting it in 3 files that do the same looks wrong from code sharing... just a couple of params change on each file.
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.
I know but this is a simplest step to take - split and copy. Any additional abstractions can be done later if they are necessary. Personally I do believe copying is much better for tests than abstracting things. Tests are write and forget for the most parts and this is not an actively refactored piece of code that has to be always same across all tests.
|
||
const MARKET_FEATURE_FLAG = ethers.utils.formatBytes32String('registerMarket'); | ||
|
||
describe('IssueUSDModule', function () { |
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.
each shold have a different name to ease logs reading and isolation test runs
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.
Yeah good catch, I've missed this one here
dc75077
to
3c56813
Compare
3c56813
to
0e68fe2
Compare
No description provided.