Skip to content

testing: porting new test suite using astarte_generators#1195

Draft
shinnokdisengir wants to merge 2 commits intoastarte-platform:release-1.2from
shinnokdisengir:refactor/test/new-test-suite
Draft

testing: porting new test suite using astarte_generators#1195
shinnokdisengir wants to merge 2 commits intoastarte-platform:release-1.2from
shinnokdisengir:refactor/test/new-test-suite

Conversation

@shinnokdisengir
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This PR introduces a new test suite that leverages the astarte_generators module along with custom fixtures to simplify and standardize property-based testing across the codebase. The main goal is to improve readability, reusability, and consistency in tests by:

  • Replacing repetitive generator definitions with reusable and composable ones from astarte_generators
  • Introducing fixtures for common test setup patterns (e.g. Astarte device simulation, realm initialization)
  • Structuring tests for better separation of concerns and easier maintenance

This approach reduces boilerplate and makes test intent more explicit.

See: https://www.notion.so/seco-mind/Astarte-new-Test-Suite-ExUnitProperties-6586d8c81d9f480aac80b7c28a5b44bd?pvs=4

@shinnokdisengir shinnokdisengir force-pushed the refactor/test/new-test-suite branch 3 times, most recently from 42076e9 to 8bb13c1 Compare April 7, 2025 14:48
- addded `astarte_generators` dep
- `astarte_core` using branch `release-1.2`
- override exandra

Signed-off-by: Gabriele Ghio <gabriele.ghio@secomind.com>
@shinnokdisengir shinnokdisengir force-pushed the refactor/test/new-test-suite branch from 8bb13c1 to 5547ff0 Compare April 9, 2025 11:07
 - database

Signed-off-by: Gabriele Ghio <gabriele.ghio@secomind.com>
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