-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unifies test naming standard #1975
Conversation
- Renames tests in `cats.tests` package with the "Suite" suffix, according to typelevel#1960 and typelevel#1965.
Thanks a lot! |
Codecov Report
@@ Coverage Diff @@
## master #1975 +/- ##
=======================================
Coverage 96.21% 96.21%
=======================================
Files 272 272
Lines 4628 4628
Branches 124 124
=======================================
Hits 4453 4453
Misses 175 175 Continue to review full report at Codecov.
|
@kailuowang Only for clarifying, do you mean:
If so, I'll do it ending the day :) Please let me know |
@AlejandroME yeah, sorry I wasn't clear. Thanks! |
@kailuowang I'm almost done, but I have a question. The import aliases that you've mentioned ( I ask this question because I'm not sure about the nature of these classes because I don't see them as tests, but classes that help laws checking. Sorry if it is a newbie question, but I prefer to ask before doing something dangerous. Thanks! |
@AlejandroME no it's totally my fault, I was completely blind over the fact that you are new to this part of the code base. Before your PR, there are two import cats.kernel.laws.discipline.{MonoidTests => MonoidLawTests} and later on referred to Now with your changes, we can remove the import alias and just use |
@kailuowang No worries, and thank you for the clarification! |
oh sorry, I forgot to mention that we should rename tests in cats.jvm.tests and cats.free as well. |
@kailuowang No worries, I'm resolving the conflicting files and then I proceed to rename those files :) |
- The previous commit resolved some conflicting files. Also, test classes in `cats.jvm` and `cats.free` packages were renamed to use the `XXXXSuite` naming convention. - Deleted some import aliases to `cats.kernel.laws.discipline` classes
@kailuowang I think that it's done. The tests are running ok on my machine. |
* Unifies tests naming standard - Renames tests in `cats.tests` package with the "Suite" suffix, according to typelevel#1960 and typelevel#1965. * Removes laws import aliases * Deletes more import alias - The previous commit resolved some conflicting files. Also, test classes in `cats.jvm` and `cats.free` packages were renamed to use the `XXXXSuite` naming convention. - Deleted some import aliases to `cats.kernel.laws.discipline` classes
Fixes #1965.
@kailuowang There are other tests in packages like
cats.jvm.tests
andcats.free
that wasn't renamed. Should I have to rename them also?