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

Add unit tests for RuleEngine using MockK and update rule configurations #4

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

thanhtrixx
Copy link
Owner

  • Add io.mockk:mockk:1.13.7 to dependencies for mocking capabilities.
  • Implement RuleEngineTest with test cases to verify rule execution logic.
  • Use spyk to create spies for condition and action maps.
  • Add test cases to verify actions executed based on transaction context.
  • Update rule configurations to include detailed conditions and actions for different card types.
  • Remove unused imports and clean up configuration files.

- Add `io.mockk:mockk:1.13.7` to dependencies for mocking capabilities.
- Implement `RuleEngineTest` with test cases to verify rule execution logic.
- Use `spyk` to create spies for condition and action maps.
- Add test cases to verify actions executed based on transaction context.
- Update rule configurations to include detailed conditions and actions for different card types.
- Remove unused imports and clean up configuration files.
@thanhtrixx thanhtrixx merged commit 7f7284d into main Jan 4, 2025
2 checks passed
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