Create pytest infrastructure in `rbext create`
Review Request #13084 — Created May 31, 2023 and submitted
Now that we can use pytest in extensions, we want to create that as part
of creating a new extension. This change adds the machinery to generate
conftest.pyandpyproject.tomlfiles with the correct setup to run
tests.
Created a test extension and saw that it was set up to run tests.
| Summary | ID |
|---|---|
| 5288bb93231ac941318c8eee1da1324721d0d404 |
| Description | From | Last Updated |
|---|---|---|
|
We should probably generate a pyproject.toml instead, putting this there, and also stop generating a setup.py. I know that last … |
|
|
|
Are we able to set these in our fixtures file? Also wondering about that for many of these other options. … |
|
|
|
This is duplicated. |
|
-
-
We should probably generate a
pyproject.tomlinstead, putting this there, and also stop generating asetup.py. I know that last part is outside the scope of this change, but withsetup.pygoing away, that'll be important. -
Are we able to set these in our fixtures file?
Also wondering about that for many of these other options. I suspect some can be, but I don't know.
- Change Summary:
-
Switch test config to pyproject.toml
- Description:
-
Now that we can use pytest in extensions, we want to create that as part
of creating a new extension. This change adds the machinery to generate ~ conftest.pyandsetup.cfgfiles with the correct setup to run tests.~ ~ conftest.pyandpyproject.tomlfiles with the correct setup to run~ tests. - Testing Done:
- Created a test extension and saw that it was set up to run tests. - Commits:
-
Summary ID 12d7d10cd0c1a8a2d3c42758a4a09f386a50ffe1 5288bb93231ac941318c8eee1da1324721d0d404 - Diff:
-
Revision 2 (+158)