docs(ctb): Document the test naming convention#4116
docs(ctb): Document the test naming convention#4116
Conversation
🦋 Changeset detectedLatest commit: e5eed49 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
0fff8e5 to
66a19f5
Compare
66a19f5 to
20ca4d6
Compare
|
|
||
| contract AddressAliasHelper_Test is Test { | ||
| function test_fuzz_roundtrip(address _address) external { | ||
| function testFuzz_applyAndUndo_succeeds(address _address) external { |
There was a problem hiding this comment.
TBH I'm now leaning towards removing the _succeeds postfix, but I'd like to get these changes in as is, then we could easily cut it out in a subsequent PR.
20ca4d6 to
e5eed49
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #4116 +/- ##
===========================================
+ Coverage 39.51% 42.02% +2.51%
===========================================
Files 287 295 +8
Lines 16231 16515 +284
Branches 642 641 -1
===========================================
+ Hits 6414 6941 +527
+ Misses 9307 9063 -244
- Partials 510 511 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
I feel like this should be multiple PRs. Doc change itself could be one PR, then PR to add the script, then multiple PRs to update names to pass the script |
|
@smartcontracts OK. |
Description
Furthers the work of reorganizing the forge tests, which was begun in #3611.
This is a smaller version of #4084.
This PR does not move or reorganize functions, it only renames them.
It also:
ts-node scripts/forges-test-names.ts.This script should eventually be added to CI, once all function names have been updated.
Longer term the rules in the script should be added to a more robust set of internal rules, defined in slither or a similar tool.