Overview for 'matthiasnoback'

Do tests need static analysis level max?

Written by Matthias Noback / Original link on Mar. 8, 2021

I recently heard this interesting question: if your project uses a static analysis tool like PHPStan or Psalm (as it should), should the tests by analysed too? The first thing to consider: what are potential reasons for not analysing your test code? Why not? 1. Tests are messy in terms of types Tes…