Closed kamaroly closed 3 months ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This pull request sets up the testing environment for the Salad UI project. It includes the addition of a GitHub workflow for automated testing, new dependencies for testing, a test helper module, and initial test cases for the Alert component. Additionally, it includes code formatting improvements across several files.
Files | Changes |
---|---|
lib/salad_ui/table.ex lib/salad_ui/dialog.ex lib/salad_ui/dropdown_menu.ex lib/salad_ui/separator.ex |
Formatted attribute and slot definitions for better readability. |
test/salad_ui/alert_test.exs test/support/component_case.ex |
Added initial test cases and test helper module for component testing. |
Goal Making it easier for the developer to do TDD while adding feature to salad UI or fixing bugs.
Changelist
mix test.watch
to make it easier for TDD.mix.exs
ComponentCase
test helper, for the unit tests.SaladUI.AlertTest
test for the alert component tests.Summary by Sourcery
This pull request sets up the testing infrastructure for the project. It introduces
mix test.watch
for TDD, adds necessary dependencies and aliases inmix.exs
, and includes a GitHub workflow for running tests on specific branches. Additionally, it adds aComponentCase
test helper and a test suite for the alert component. The README.md has been updated with instructions for running tests and formatting code.mix test.watch
for easier Test-Driven Development (TDD).ComponentCase
test helper for unit tests.SaladUI.AlertTest
for alert component tests.mix.exs
to include necessary dependencies for testing and added aliases for common tasks.salad_ui_test.exs
.