-
Notifications
You must be signed in to change notification settings - Fork 979
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
run tests in parallel locally with makefile #1808
Conversation
|
||
contracts = slither.compilation_units[0].contracts | ||
a = contracts[0] if contracts[0].is_interface else contracts[1] | ||
assert len(a.references) == 2 | ||
lines = _sort_references_lines(a.references) | ||
assert lines == [12, 18] | ||
|
||
|
||
def test_references(): |
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.
was this removed?
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.
No, the test was calling two nested tests and I split them to be their own test. https://github.com/crytic/slither/pull/1808/files/d1b9e8288900d6b7d75025b3f589adec0b68a045#diff-fee079d1aa52bfd03e4808f11f095beadfb074ecb24718f690004bb271bd4754R80-R103
This PR adds a Makefile that creates a developer env (
make dev
), run linting validation (make lint
), reformats and modifies the code (make reformat
), runs tests (make test
). The guidance in CONTRIBUTING.md has been updated to reflect these and the modifications to the test directory structure. In addition, the usage of solc-select was modified to use a fixture (solc_binary_path
) which takes a lock on the binary while the test runs, allowing the tests to be run in parallel