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

Test bases and setups #78

Open
4 tasks
ChromaChroma opened this issue Jul 24, 2022 · 0 comments
Open
4 tasks

Test bases and setups #78

ChromaChroma opened this issue Jul 24, 2022 · 0 comments
Labels
feature Add new functionality Security Issue like Bug, Feature or Improvement related to security

Comments

@ChromaChroma
Copy link
Collaborator

ChromaChroma commented Jul 24, 2022

Create a tactic/technique, split up, how we are going to test.

types

Unit test, test a small separated piece of code without the app context , the business logic
Integration service tests, test use cases and their possible paths, only test what can change and what is important in the service layer and flowthrough. Don't test every single unit case * security
consumer tests, test that the listener consumes specific event when it is published and calls/does the required logic. And in case of failure of logic then what
producer tests, test that a service publishes events when handled (and that the producer works)
Integration endpoint tests, test http requests en a set of possible security takes on the call.

Add security to tests where security plays a role:

  • Create a way to easily test all roles.(common test fixtures of different user roles)
  • Add test base for consumer test(logic publish request)
  • add http/mock test base for http integration tests
  • producer test (Service tested should publish event (into broker))
  • Service integration tests / mocked tests
  • Controller test base with http (mock) support
  • user test fixtures
@ChromaChroma ChromaChroma added feature Add new functionality Security Issue like Bug, Feature or Improvement related to security labels Jul 24, 2022
@ChromaChroma ChromaChroma added this to the v1.0 milestone Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Add new functionality Security Issue like Bug, Feature or Improvement related to security
Projects
Archived in project
Development

No branches or pull requests

1 participant