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

Allow single integration tests to be run from invoke #6846

Open
msheiny opened this issue Jan 31, 2025 · 1 comment · May be fixed by #6847
Open

Allow single integration tests to be run from invoke #6846

msheiny opened this issue Jan 31, 2025 · 1 comment · May be fixed by #6847
Assignees
Labels
triage This issue is new and has not been reviewed. type: housekeeping Changes to the application which do not directly impact the end user

Comments

@msheiny
Copy link
Contributor

msheiny commented Jan 31, 2025

Proposed Changes

Currently, running invoke unittest will exclude any test tags of integration. The way this is currently laid out in the NautobotTestRunner - it is impossible to run a single integration test without also running the entire suite of tests.

Propose that we make some tweaks in the code runner to ensure developers can run a single test/suite at a time even if they are an integration test.

Justification

It is important for developer sanity to be able to select a single test to run over and over again quickly. According to our CI records, these integration tasks can take up to 25 minutes to run the full suite.

@msheiny msheiny added triage This issue is new and has not been reviewed. type: housekeeping Changes to the application which do not directly impact the end user labels Jan 31, 2025
@msheiny msheiny self-assigned this Jan 31, 2025
@msheiny msheiny changed the title Allow single integration test to be run from invoke Allow single integration tests to be run from invoke Jan 31, 2025
@msheiny msheiny linked a pull request Jan 31, 2025 that will close this issue
7 tasks
@glennmatthews
Copy link
Contributor

Isn't that what invoke integration-test is for? Or does it not allow for specification of a pattern or label at present?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage This issue is new and has not been reviewed. type: housekeeping Changes to the application which do not directly impact the end user
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants