-
Notifications
You must be signed in to change notification settings - Fork 60
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
Rename testscour.py to test_scour.py to make py.test work out of the box #181
Conversation
Codecov Report
@@ Coverage Diff @@
## master #181 +/- ##
=======================================
Coverage 91.49% 91.49%
=======================================
Files 5 5
Lines 2127 2127
=======================================
Hits 1946 1946
Misses 181 181 Continue to review full report at Codecov.
|
Is there somewhere an explanation what pytest improves upon standard Python functionality? I always dislike packages that seem to do what is already possible (maybe just in a different, often not even really more convenient way). Long term I'd prefer to split the huge testscour.py into smaller modules and put them into a test/ subdirectory, but I did not get around to that yet... Sorry for slow response times, I'm pretty busy these days, so it might take some time before I'm able to look into the remaining PRs (I'll look into them eventually, though, I promise). |
Eduard Braun:
Is there somewhere an explanation what pytest improves upon standard Python functionality?
> I always dislike packages that seem to do what is already possible
(maybe just in a different often only slightly more convenient way).
Feel free to reject the patch if you do not like the change. :)
I proposed it because it could be implemented side-by-side with scour's
own test runner while helping myself ("py.test-3" is my
"finger-memorized" test runner when I experiment with code/do iterative
changes locally).
Long term I'd prefer to split the huge testscour.py into smaller modules and put them into a test/ subdirectory, but I did not get around to that yet...
Do you have any public notes about what you were planning/expecting from
the refactoring? Like how you wanted to group the tests and the
fixtures/input files.
Sorry for slow response times, I'm pretty busy these days, so it might take some time before I'm able to look into the remaining PRs (I'll look into them eventually, though, I promise).
Ok, take your time. :)
Thanks,
~Niels
|
No, everything that exists is basically in my head and not developed any more than:
If you want to look into this feel free to open a dedicated issue where I'd be happy to discuss any ideas with you. |
I am +1 on merging this (when it no longer conflicts;) - moving to pytest:
|
Regarding the merge conflict. I will gladly rebase it if @Ede123 agrees to the change. However, given that every pull request that touches the test suite will cause a new conflict, I am hesitant to update it now. |
I'm totally fine with it - it's not that the rename on it's own would change any functionality. I was just curious what pytest brings to the table. Can we rename "testcss.py" -> "test_css.py" alongside with it for consistency or would this cause with pytest? Feel free to rebase at any point... |
@nthykier If you still want to merge this, could you please rebase and rename "testcss.py" -> "test_css.py" as mentioned above? |
This rename makes py.test/py.test-3 find the test suite out of the box. Example command lines: # Running the test suite (optionally include "-v") $ py.test-3 # Running the test suite with coverage enabled (and branch # coverage). $ py.test-3 --cov=scour --cov-report=html --cov-branch Signed-off-by: Niels Thykier <niels@thykier.net>
Rebased. It seems to work with the rename of |
Thanks! :-) |
This rename makes py.test/py.test-3 find the test suite out of the
box. Example command lines:
Signed-off-by: Niels Thykier niels@thykier.net