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

Start using a unit testing framework #2

Open
PatrickvL opened this issue Jan 3, 2018 · 1 comment
Open

Start using a unit testing framework #2

PatrickvL opened this issue Jan 3, 2018 · 1 comment

Comments

@PatrickvL
Copy link
Member

PatrickvL commented Jan 3, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant