[Unified Fides] Slow Speeds Running Pytest in Shell
See original GitHub issueIs your feature request related to a specific problem?
Running pytest within the fides
shell feels too slow to be usable
- Running
nox -s dev -- postgres shell
- Wait awhile for this to come up, 3-5 minutes
- Target a specific test within the shell, for example:
pytest tests/ops/api/v1/endpoints/test_user_permission_endpoints.py::TestCreateUserPermissions::test_create_user_permissions_not_authenticated
- Wait 3+ minutes for the test session to start and test to be collected before I get results.
Describe the solution you’d like
A description of what you want to happen.
Describe alternatives you’ve considered, if any
A description of any alternative solutions or features you’ve considered.
Additional context
I’m on an M1 mac but previously didn’t experience these sorts of delays when running pytest in the shell.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
How to speed up pytest - python - Stack Overflow
In the special case where you are running under cygwin's python, its unix-style file handling is slow. See pytest.py test very slow startup ......
Read more >Usage and Invocations — pytest documentation
pytest -m slow. Will run all tests which are decorated with the @pytest.mark.slow decorator. For more information see marks. Run tests from packages....
Read more >Pytest | IntelliJ IDEA Documentation - JetBrains
IntelliJ IDEA supports pytest, a fully functional testing framework. The following features are available: The dedicated test runner.
Read more >10 Posts Tagged 'pytest' - Adam Johnson
Shell Tricks for Repeatedly Running Flaky Tests ... Investigating flaky tests is a dull necessity of testing. At least it is (in the...
Read more >Effective Python Testing With Pytest
As with most frameworks, some development patterns that make sense when you first start using pytest can start causing pains as your test...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pattisdr good to hear that helped! We’ve got an issue open I’m going to tackle today if possible, monday at the latest that will remove that line as a default since I know it really hurts M1 performance!
Thanks for helping me confirm!
related to #1051