Infleqtion / client-superstaq

https://superstaq.readthedocs.io
Apache License 2.0
84 stars 19 forks source link

Make multicore optional for pytest #990

Closed pgoiporia closed 1 month ago

pgoiporia commented 2 months ago

I've noticed that running individual checks takes much longer with multicore pytest. This is because it takes time to instantiate and collect the workers. It would be useful to have pytest default to multicore but have the option to pass a flag that indicates I want to run on a single core.

pgoiporia commented 1 month ago

Added suggestion. Maybe we default to multicore when using ./checks/pytest_.py but default to running on a single core when we specify any files/specific tests.

vtomole commented 1 month ago

Duplicate of https://github.com/Infleqtion/client-superstaq/issues/991