Skip to content

Conversation

@thelooter
Copy link

This pull request includes changes to the palette module, focusing on enhancing the test suite by introducing parameterized tests and adding new dependencies for testing. The most important changes include adding the junit-jupiter-params dependency to the pom.xml file and refactoring the test cases in PaletteTests.java to use parameterized tests.

Added libraries:

  • palette/pom.xml: Added the junit-jupiter-params dependency to support parameterized tests.

Refactoring test cases:

Refactor tests in `PaletteTests.java` to use parameterized tests.

* Refactor `mochaExistsAndReturnsCorrectDetails`, `frappeExistsAndReturnsCorrectDetails`, `macchiatoExistsAndReturnsCorrectDetails`, and `latteExistsAndReturnsCorrectDetails` into a single parameterized test `flavorExistsAndReturnsCorrectDetails`.
* Add `provideFlavors` method to supply arguments for the parameterized test.
* Refactor `darkLightSet` test to use parameterized test and constants from `com.catppuccin.Palette`.
* Add `provideDarkLightFlavors` method to supply arguments for the `darkLightSet` parameterized test.
* Add `junit-jupiter-params` dependency under `<dependencies>` section for parameterized tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant