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

add pretest #396

Merged
merged 6 commits into from
Jul 29, 2021
Merged

add pretest #396

merged 6 commits into from
Jul 29, 2021

Conversation

ANISH-GOTTAPU
Copy link
Contributor

add pretest

do.py Outdated
@@ -36,6 +36,15 @@ def lint():


def test():
pretest_args = [
Copy link
Contributor

Choose a reason for hiding this comment

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

we shouldn't write another test and run them separately.

the goal is to run some code automatically before starting all tests. This can be done using pytest fixtures.

pytest-dev/pytest#3709 (comment)

config.ports.port(name="port%d" % i, location=utils.settings.ports[i])[
-1
]

Copy link
Contributor

Choose a reason for hiding this comment

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

Have we tested that this works if we cancel pipeline while the test is running and then restart pipeline ?

Copy link
Contributor

@ashutshkumr ashutshkumr left a comment

Choose a reason for hiding this comment

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

Use pytest fixtures instead of a separate pytest script to do cleanup before running tests.

Copy link
Contributor

@ashutshkumr ashutshkumr left a comment

Choose a reason for hiding this comment

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

Use pytest fixtures instead of a separate pytest script to do cleanup before running tests.

@ashutshkumr
Copy link
Contributor

Closing as #399 already fixes the underlying issue.

@ANISH-GOTTAPU
Copy link
Contributor Author

@alakendu & @Rangababu-R : Please suggest any pointer discussed during the meeting

@ashutshkumr ashutshkumr merged commit dd278b6 into main Jul 29, 2021
@ashutshkumr ashutshkumr deleted the add_pretest branch July 29, 2021 05:36
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.

2 participants