Skip to content

Add test framework and coverage for multi-status filtering (#68/#69) #70

@devondragon

Description

@devondragon

Background

PR #69 added multi-status filtering and includeAllStatuses support to the motion_tasks list operation. The new behavior currently has no test coverage because no test framework exists in the codebase.

What needs testing

Once a test framework is set up, the following scenarios should be covered:

  • status as array serializes to repeated status= query params in getTasks()
  • includeAllStatuses: true appends includeAllStatuses=true to query params
  • Combining status (non-empty) and includeAllStatuses returns a validation error
  • status: [] (empty array) + includeAllStatuses: true does not error (empty array = no filter)
  • status array with empty string elements is rejected with validation error
  • Single status string still works (backward compatibility)
  • status array rejected with clear error message for create and update operations

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions