Skip to content
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

Merged
merged 14 commits into from
Apr 17, 2023
Merged

run tests in parallel locally with makefile #1808

merged 14 commits into from
Apr 17, 2023

Conversation

0xalpharush
Copy link
Contributor

@0xalpharush 0xalpharush commented Mar 28, 2023

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

tests/conftest.py Outdated Show resolved Hide resolved
@0xalpharush 0xalpharush marked this pull request as ready for review March 30, 2023 14:49
tests/conftest.py Outdated Show resolved Hide resolved
@0xalpharush 0xalpharush requested a review from elopez March 30, 2023 16:45
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved

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():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@montyly montyly merged commit 0aca60a into dev Apr 17, 2023
@montyly montyly deleted the dev-makefile branch April 17, 2023 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants