Skip to content

Refactor the tests into a more standard structure #281

@joanise

Description

@joanise

In g2p and everyvoice, we have tests under <REPO>/<projectroot>/tests, but in Studio we have them directly under <REPO>/test.
The way we've installed them, the standard python -m unittest invocation cannot be used to run a class or a single function, instead we have to one or more files at a time in our unusual custom way.

Tasks:

  • Move tests under readalongs/tests
  • change the import of basic_test_case and sound_swallower_stub to proper relative import, i.e., from .basic_test_case import ...
  • address other dependencies we had to the current file structure
  • exclude readalongs/tests from wheel and dist, the way everyvoice does, so they don't bloat our published wheels
  • replace test/run.py by run_tests.py at the root like in g2p
  • make sure code coverage analysis excludes readalongs/tests/
  • Update the documentation on how to run the tests

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