happy-family-315
07/08/2022, 9:47 AMpants test ::
for testing django the performance is much worse than just using pytest
. Each test takes 8.5-9.5 secs (constantly) , because of some pants setup I think. Using pytest most of the tests run in under one second. I thought pants could run tests in parallel but only one core out of 4 is used. Maybe I am doing something wrong. Also caching seems not to work: When rerunning tests (without changing any files inbetween) every tests gets called again, not only the ones that failed. Is this because I am using a development version of pants or a configuration error?
PANTS_SHA: f721c1077f97ef1aacba2a093f3f5cfd9677dc75
[pytest]
lockfile = "lockfiles/python/tools/pytest"
version = "pytest>=7.1.2,<7.2"
extra_requirements.add = [
"pytest-django==4.5.2",
"pytest-icdiff==0.5",
"mixer==7.2.1"
]
witty-crayon-22786
07/08/2022, 4:37 PMwitty-crayon-22786
07/08/2022, 4:38 PMpantsd
staying up between runs? and are any files being invalidated?witty-crayon-22786
07/08/2022, 4:38 PM.pants.d/pants.log
, which will report restarts and which files are being invalidatedwitty-crayon-22786
07/08/2022, 4:40 PMwitty-crayon-22786
07/08/2022, 4:40 PMwitty-crayon-22786
07/08/2022, 4:44 PM./pants test $file
(rather than ::
)enough-analyst-54434
07/08/2022, 4:44 PMhappy-kitchen-89482
07/08/2022, 5:16 PMhappy-kitchen-89482
07/08/2022, 5:16 PMhappy-family-315
07/21/2022, 12:33 PMhappy-kitchen-89482
07/21/2022, 6:28 PMhappy-kitchen-89482
07/21/2022, 6:28 PM