Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write tests #2

Open
1 of 15 tasks
SamJakob opened this issue Oct 14, 2021 · 0 comments
Open
1 of 15 tasks

Write tests #2

SamJakob opened this issue Oct 14, 2021 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested

Comments

@SamJakob
Copy link
Member

SamJakob commented Oct 14, 2021

We need to write tests – particularly for the core framework. Here's, what I believe to be, a sensible roadmap for this process:

  • Stage 0: choose and set up the initial test framework.
  • Stage 1: determine convention for writing tests.
    • Stage 1.0: document convention for writing tests.
    • Stage 1.1: write a few (very) fundamental tests to use as examples.
  • Stage 2: write tests for core and simple or critical (to be defined) core modules.
    • Stage 2.0: determine which modules are simple and/or critical - in other words triage Stage 2
    • Stage 2.1: determine the scope and quantity of the tests we'd like to write at this stage (bear in mind, more can be written after the fact)
    • Stage 2.2: write the tests
    • Stage 2.3: compare the tests with our convention and document/resolve any oversights
  • Stage 3: implement CI for tests
    • Stage 3.0: consider what, at which points, should be tested (e.g., do we test all modules on every push or pull request or are some tests not relevant)
    • Stage 3.1: commit working CI configuration
    • Stage 3.2: test CI configuration with deliberately invalid commits (perhaps in another branch depending on external framework usage)
  • Stage 4: establish and document protocol for writing tests
    • Stage 4.0: consider and document who we will expect to write tests and who, if anyone, it should be restricted to (maintainer only?, approved contributors?, all contributors?), how they should tests be themselves tested and accepted?, what are the expectations and scope of tests in general?
@SamJakob SamJakob added documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested labels Oct 14, 2021
@SamJakob SamJakob self-assigned this Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant