Skip to content
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

Feature: Testing validators in a best practice way #1469

Open
3 tasks
Starkmann opened this issue Sep 24, 2024 · 0 comments
Open
3 tasks

Feature: Testing validators in a best practice way #1469

Starkmann opened this issue Sep 24, 2024 · 0 comments
Labels

Comments

@Starkmann
Copy link
Collaborator

Goal

I would like to learn/have an example of how validators can tested.

Acceptance Criteria

  • Have fronted form for adding tea
  • Have validators in model/controller
  • Have a test for the annotation/registration of these validators

Additional Information

Of course the validator of its own can be tested as unit test. But the goal would be here to test if a model/dto has all validators and the are registered correctly.
This can be done by annotation in model but also in as annotation in controller context.
I'm thinking of a functional controller/model test.

@Starkmann Starkmann changed the title Feature: Testing validators ion a best practice way Feature: Testing validators in a best practice way Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant