-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
Code Climate has analyzed commit be7c980 and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 66.6% (80% is the threshold). This pull request will bring the total coverage in the repository to 82.0% (-0.2% change). View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great modifications and mocking (hourraaaaa !!! will improve ci stability) 👍
I left two comments on some weird documentations that I found in the codebase. Could be great if you can correct it 😀
super.setScores(gameManager) | ||
} | ||
} | ||
|
||
/** helper functions to test private functions */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** helper functions to test private functions */ | |
/* helper functions to test private functions */ | |
It is a bit weird how the comment is done for the moment.
Either do a comment that describe that below functions are helper
or do a javadoc for each.
But a javadoc that does multiple function at a time does not seems following the conventions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't write this comment nor this part, I just added one * more so it shows green...
I will leave this to the people who do refactor to change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same, will do change myself
} | ||
} | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | |
/* |
same as above, Javadoc is for a single function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe adding a javadoc for each could be great as their part of public interface, even if they are only for testing purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a nice comment, but not the focus of my PR (as I didn't use this part of the code). I think leaving the task to the people who do refactoring will be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay will do myself the change so. We will forget it otherwise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oupsi don't want to approve so fast 😂😂 I've missclicked
@@ -285,6 +313,7 @@ class LyricsBelongGameActivityTest { | |||
currentArtist = activity.getArtistName() | |||
currentSong = activity.getSongName() | |||
} | |||
|
|||
onView(withId(R.id.lyricMatchButton)).check(matches(not(isDisplayed()))) | |||
assertEquals(artistName, currentArtist) | |||
assertEquals("Monday", currentSong) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Whole file) Great job on adding mocks and removing Thread.sleep instances 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good to me. Maxime's comments on the Javadoc seem solved now as well.
coverage is low due to firebase