-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0dd051a
commit e03b7d5
Showing
3 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ jobs: | |
|
||
- name: Lint sources | ||
run: pnpm lint:sol | ||
continue-on-error: true | ||
|
||
unit_test: | ||
name: Unit tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Skip an individual test | ||
function test_SomeFunction() public { | ||
if (vm.envOr("SKIP_TEST", false)) { | ||
return; | ||
} | ||
// Test code here | ||
} | ||
|
||
// Skip an entire contract | ||
contract SkippedTestContract is Test { | ||
function setUp() public {} | ||
|
||
function test_Function1() public skip {} | ||
function test_Function2() public skip {} | ||
} |