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

Speed up unit tests by adding default parallelism #164

Merged
merged 3 commits into from
May 18, 2021
Merged

Speed up unit tests by adding default parallelism #164

merged 3 commits into from
May 18, 2021

Conversation

ferozsalam
Copy link
Collaborator

@ferozsalam ferozsalam commented May 18, 2021

  • Also update pytest to a newer version, making other changes required
    to enable this
  • On a six-core machine, the test suite now runs in 8s as opposed to ~40s
  • On a single-core machine, the test suite now runs in ~60s as opposed to ~85s
  • Have also fixed one incorrect use of raises() which has been deprecated

Feroz Salam added 2 commits May 18, 2021 08:18
- Also update pytest to a newer version, making other changes required
  to enable this
- On a six-core machine, the test suite now runs in 8s as opposed to ~40s
- On a single-core machine, the test suite now runs in ~60s as opposed to ~85s
- Have also removed one incorrect use of `raises()` which has been deprecated
@@ -347,7 +347,7 @@ def test_raises_on_missing_config():
mock_rule_open.return_value = test_rule_copy
with mock.patch('os.walk') as mock_walk:
mock_walk.return_value = [('', [], ['testrule.yaml'])]
with pytest.raises(EAException, message='key %s should be required' % key):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

See here for more information on why the message has been removed.

Copy link
Owner

@jertel jertel left a comment

Choose a reason for hiding this comment

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

Nice job on all of these improvements!

@jertel jertel merged commit ee212fd into jertel:master May 18, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants