tasks.md 1.12 KB
Newer Older
1 2 3 4
# Tasks

> Planned development:

5
## Add a test for the skipping unchanged files
6

7 8 9 10 11 12 13 14 15 16 17
- Run normal test
- Remember the file change date of the text file
- Run test again
- Verify the date has not changed

## Add a test for generated warnings

- Run a normal test
- Verify `README.md` exists and matches expected text
- Verify text file first line is the warning text
- Verify corresponding XML file has the XML comment
18 19 20

## Add a test for disposing of abandoned extraction directories

21 22 23 24 25
- Run a normal test
- Delete the Office file
- Run the script again
- Confirm directory doesn't exist anymore

26
## Add a test for the Git hook code
27 28 29 30 31

- Create the Office file
- Set up the Git hook (extract hook code out form the `README.md` file)
- Run Git commit
- Verify extraction directory has been created and text file matches
32 33 34 35 36 37

## Make tests run on each commit in this repo

In normal repo utilizing this script, only the script would run,
but as this is a development repository, tests should run as a
pre-commit hook before the script itself does.
38 39

Possibly should utilize GitHub/GitLab CI instead of pre-commit hook?