psalm / codeception-psalm-module

Codeception module providing assertions and Gherkin snippets to help with Psalm acceptance testing
MIT License
5 stars 7 forks source link

Add `--no-cache` to psalm commands #52

Open boesing opened 1 year ago

boesing commented 1 year ago

Hey there,

I recently stumbled upon a problem which I wanted to fix. I debugged stuff, etc. and while debugging I was using --no-cache and was unable to reproduce the problem. I then found out that psalm is executed without --no-cache here which is kinda problematic in some cases (i.e. when using codecept run --fail-fast which keeps the _run directory).

I'd like to propose adding --no-cache to the psalm CLI execution command so that there are no sideeffects from whatever caches.

weirdan commented 1 year ago

I think that would be fine if it's configurable. Some plugins have a ton of tests that benefit from a cache being enabled.

boesing commented 1 year ago

Are the _run files generated by codeception do always have the same hashes? But besides that, I would be fine with having that configurable 👍🏼

weirdan commented 1 year ago

The filename hash is based on the file contents, but any dependencies from vendor can still be cached.