You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
issue1: definitely part of the functional core and we relay on it for multiple features
issue2: it's not being tested currently. It's used in other tests which is not the same thing.
issue3: the function works so we should not modify it but simply write what Martin Fowler calls acceptance tests for it. Meaning: if we give her this kind of objects as input, this is the output we currently get.
Regarding issue 2, an issue is that if you have a class FindKitten, there is a strong convention that you test it in the class FikkndKittenTest. And you can jump there with the action Go To Test.
But there is no such convention for top-level functions AFAIK.
The text was updated successfully, but these errors were encountered:
Do a code review and find the functions without side effects that are part of the functional core.
If they are tested, add an annotation @TestedBy("SomethingTest")
If they are not, add an annotation @NeedsTest
Add acceptance tests for important functions like getArtifactNameToConstantMapping()
Alternative: if there is a bunch of top-level functions that belong together, put them inside an object or a class (if they have multiple common parameters) so that we use the convention FindKitten -> FindKittenTest
We have lots of top-level functions and it's often unclear
For example with the function
getArtifactNameToConstantMapping()
Regarding issue 2, an issue is that if you have a class
FindKitten
, there is a strong convention that you test it in the classFikkndKittenTest
. And you can jump there with the actionGo To Test
.But there is no such convention for top-level functions AFAIK.
The text was updated successfully, but these errors were encountered: