Skip to content

Conversation

@dbosk
Copy link
Owner

@dbosk dbosk commented Jan 20, 2022

Write tests for all functionality. These tests can be included as examples in the documentation.

dbosk added 3 commits January 11, 2020 09:09
We now introduce `tests.mk` in the intro chapter. However, the tests
will be covered in each chapter (i.e. in the NOWEB file of each
include).

There is a `tests.nw` file which sets up the structure. This file is
covered in the introduction. However, each file, e.g. `tex.mk.nw`, will
also have a code block `<<tests.mk>>` containing all test code. Then
`tests.mk` can be constructed from `tests.nw tex.mk.nw` and so on.

The rationale is that the tests should be with the code. Otherwise they
risk getting out of sync.
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

Successfully merging this pull request may close these issues.

2 participants