python - What's the idea behind pytest-cache? -
https://bitbucket.org/hpk42/pytest-cache
it seems tool cache func/args->result pairs , persist them between testsuite-runs. seems great thought speed things up. haven't noticed mention of automatically detecting alter of function source code , invalidating corresponding cache entries. seems defeat purpose of running test suite, because tested code changes not going reflected.
pytest-cache 2 things:
offer mechanism through other plugins can get/set values via config.cache.get|set. used pytest-pep8 , pytest-flakes illustration store mtime of lastly check avoid re-checking files time.
store test failures can run --lf run lastly failures , --ff run lastly failures first, rest of tests.
the functionality bound move core pytest-2.7 (not released of today) or subsequent release.
python testing py.test
No comments:
Post a Comment