Skip to content

Test "framework" #72

@ellnix

Description

@ellnix

Each part of the app has a ton of implicit dependencies on other parts of the app. Testing any particular module is a nightmare of stubbing and misusing and implicit dependencies on the state of the file system.

I propose we build a testing system that exposes sample testing data with a convenient interface and fast implementation. Here are some ideas:

  • A high level src/test_helper.rs module (only compiled with cfg(test) that includes functions for:
    • Fetching test clashes
    • Making custom process::Commands for the aforementioned test clashes
  • A collection of clash JSON files in the repo
  • A tests/common/cli_helper.rs module that includes functions to set up the file system environment in a certain way to run integration tests directly on the CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions