-
Notifications
You must be signed in to change notification settings - Fork 43
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
Move iris-grib to pytest #253
Comments
I'm thinking of messing about with this a bit, hopefully within a few weeks. Are there any particular objectives here beyond standardisation and all the good stuff Pytest provides? I.e. are there any specific pain points this is trying to resolve and that may need extra focus? |
Well, good for you ! 💐 Really want to encourage this. There's a question as to adopting PyTest as an engine, as against rewriting unittest-style code for PyTest. A braindump of some points I've noted so far... key want : get rid of "nose" which is rather ancient and unsupported
benefits
possible reasons to not do it
drawbacks
|
@pp-mo that's really helpful to see - I kept thinking I ought to be taking notes when you were discussing this with me! |
Good news - replacing the test command in nox with A single session (python3.7, iris_source=conda-forge) took up 16s of pytest time on my box (i.e. + env setup) before I've even tried pytest-xdist. This was just a quick compatibility check to see how much work there was to do - I haven't yet started on duplicating any existing arguments or features that we've got with the current test setup. Essentially, this should mean that a pretty minimal migration to pytest is possible and the move to native pytest (plain assertions, remove main blocks, remove small classes, use fixtures, etc) can happen later as prioritisation/effort/interest dictates. |
I believe this needs to stay open - we switched the runner in #420 but the need to rewrite into PyTest format remains. |
Tasks
The text was updated successfully, but these errors were encountered: