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

Parameterize the module I want to use to run tests #19

Closed
felipearcaro opened this issue Apr 11, 2024 · 5 comments
Closed

Parameterize the module I want to use to run tests #19

felipearcaro opened this issue Apr 11, 2024 · 5 comments

Comments

@felipearcaro
Copy link

I've been using your package and it works great, thank you for building it.

When I run python -m unittest, it executes the unittest module as a script - something like python unittest.py, which gives me some flexibility. For example, when I run Python unit tests inside of TeamCity, I can run python -m teamcity.unittestpy instead to use TeamCity's Python package (essentially a wrapper around unittest module) - that discovers and runs tests, and reports the results in a format that TeamCity can understand.

Do you think that could be added as a parameter, something like unittest-parallel -m teamcity.unittestpy?
By quickly looking at your code and teamcity-messages's documentation, I believe that, in the scenario I described above, this line would run TeamcityTestRunner() instead.

I would be more than happy to work on it and put up a PR, let me know.

Note: This is probably an enhancement and not an issue.

@craigahobbs
Copy link
Owner

Sounds similar to #16.

@felipearcaro
Copy link
Author

Oh right - I'll put up a PR for you to review. Thanks!

@felipearcaro
Copy link
Author

Hey @craigahobbs - just created this PR. Thanks!

@craigahobbs
Copy link
Owner

Working in "feature/custom-runner":

https://github.com/craigahobbs/unittest-parallel/tree/feature/custom-runner

@craigahobbs
Copy link
Owner

Duplicate of #16

@craigahobbs craigahobbs marked this as a duplicate of #16 Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants