-
Notifications
You must be signed in to change notification settings - Fork 10
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
Parallelize integration tests #411
Conversation
66e0260
to
097bc46
Compare
097bc46
to
f9e1609
Compare
class TestDependencyManager(CleanRepoMixin): | ||
output_path = "test-codetf.txt" | ||
class TestDependencyManager: | ||
output_path = tempfile.mkstemp()[1] |
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.
Would it make more sense to do this within setup_class
?
|
||
cls.code_path = os.path.join(cls.code_dir, cls.code_filename) | ||
|
||
if cls.code_filename == "settings.py" and "Django" in str(cls): |
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.
It feels like maybe this should just happen in a Django-specific subclass.
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.
very very true. Honestly I was just trying to make as few changes to specific integration test files as possible. Just for now I'm going to leave it as is.
Quality Gate passedIssues Measures |
Overview
Be able to run all integration-tests in parallel for speed
Description
replacement_lines
be 1-index as this was confusing to see compared withexpected_line_change
. It didn't make sense to have these lines be 0-index when everything else for line changes is 1-indexed.Additional Details
test_sonar_fix_missing_self_or_cls
is missing theis_node_selected
check, it passes when it shouldn't. This is because I hadn't updated sonar_issues.json because nothing reminded me to do so. I'll ticket this and thoughts around how to prevent this issue.