Skip to content

Tests #21

@nathanweeks

Description

@nathanweeks

As functionality is added and updated, and newer pysam versions specified in requirements.txt, it would be useful to run a set of tests that can be run to validate updates.

Regarding implementation:

  • The FastAPI docs recommend Requests + pytest. Alternatively, it may be possible to use curl against a running fasta-api instance, though there may be issues coordinating the startup (such as waiting until the fasta-api process is listening on port 8000) and validating the resulting JSON output (simple string comparison would probably be too brittle due to undefined ordering of name/value pairs in objects).
  • Initially, could run tests against files in the data store; eventually, it may be preferable to add a small set of files in the supported formats to the fasta-api git repository.
  • Initially these could be run manually (e.g., make test); eventually, they could also perhaps be automated to run via GitHub Actions workflow as part of a CI pipeline (e.g., run tests on pull request).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions