Skip to content

Start using a unit testing framework #2

@PatrickvL

Description

@PatrickvL

Unit testing offers:

  • Test suites
  • Fine-grained selection of tests to run
  • An optional GUI
  • Separation between setup, test and teardown
  • Ability to run multiple tests within a setup + teardown block
  • Progress information during, and statistics after a test run
  • Descriptive messages when a test encounters unexpected behaviour
  • Functions to test for expected results
  • Functions to test for exceptions
  • Functions to assert known breakage
  • Dynamic test generation (varying test conditions)
  • Saving test results
  • Comparing test results against others
    Etc.

By choosing the best testing framework right from the start, lots of frustration can be avoided, tests can be written much easier, and a costly switch can be avoided.

So: do some research for testing frameworks, experiment with a few of the most promising ones, and select one.

Then, supply enough samples to make it easier for others to join in, and document framework-specific rules.

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