igor.wojda
02/27/2023, 4:08 PMLuke Armitage
02/27/2023, 4:15 PMigor.wojda
02/27/2023, 4:18 PMdetekt
or ArchUnit
Landry Norris
02/27/2023, 4:21 PMMarko Novakovic
02/27/2023, 4:21 PMwhat is your way to ensure that every class has equivalent test class present in the code basewhy that, in a first place? there shouldn’t be 1:1 between code and test classes/modules/components
Luke Armitage
02/27/2023, 4:23 PMLandry Norris
02/27/2023, 4:24 PMMarko Novakovic
02/27/2023, 4:25 PMLandry Norris
02/27/2023, 4:27 PMigor.wojda
02/27/2023, 4:27 PMUseCases
and Repositories
, so I would like to simply enforce these tests by heaving some kind of linter (so tests are not forgotten when adding new class).Landry Norris
02/27/2023, 4:30 PMLandry Norris
02/27/2023, 4:33 PMLandry Norris
02/27/2023, 4:34 PMpsh
02/27/2023, 4:43 PMwhat is your way to ensure that every class has equivalent test class present in the code base?It’s a human problem, not a machine problem. Just because there are files, or tests within those files or even coverage numbers, doesn’t ensure that the tests have any value. I’ve seen “tests” where someone used reflection to programmatically hit methods in classes with no actual assertions just to get “coverage”. It’s a people thing - build a culture of quality where you hold each other accountable for writing better test code. Refactor both production and test code to make it better. Changing the hearts and minds of developers to take pride in the quality will pay dividends over a brittle automated traffic cop 🙂
Landry Norris
02/27/2023, 4:46 PMMarko Novakovic
02/27/2023, 5:10 PMigor.wojda
03/04/2023, 5:01 PMArchUnit
condition and I am curious how this will evolve with project growth. Here is the code:
https://github.com/TNG/ArchUnit/issues/1072#issuecomment-1454783647Marko Novakovic
03/06/2023, 10:34 AM