Skip to content

TASK-P1-003: Create Test Utils Module #2865

@robfrank

Description

@robfrank

Priority: MEDIUM
Effort: 3 days
Phase: Phase 1 - Foundation
Week: 1-2 (Dependency Cleanup)

Description

Extract common test utilities to arcadedb-test-utils module

Steps

  1. Create new Maven module: test-utils/
  2. Create pom.xml with test dependencies (JUnit 6, TestContainers, etc.)
  3. Extract common test utilities from server test-jar:
    • Database builders
    • Test data generators
    • Assertion helpers
    • TestContainers configurations
  4. Update all modules using server test-jar to depend on test-utils
  5. Remove test-jar packaging from server module
  6. Update build configuration
  7. Run full test suite

Files to Create

  • test-utils/pom.xml
  • test-utils/src/main/java/com/arcadedb/test/TestDatabaseFactory.java
  • test-utils/src/main/java/com/arcadedb/test/TestDataBuilder.java
  • test-utils/src/main/java/com/arcadedb/test/AssertHelpers.java

Files to Modify

  • pom.xml (add test-utils module)
  • All modules with test-jar dependency (gremlin, graphql, etc.)
  • server/pom.xml (remove test-jar packaging)

Acceptance Criteria

  • test-utils module created
  • No modules depend on server test-jar
  • All tests pass
  • Test utilities are reusable

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions