lone-writers-guide

Getting docs tested

Docs need QA testing, just like software. If the documentation doesn’t work, then customers might assume the product doesn’t work. Suppose a customer reads that a line of sample code in your docs will make the software do something magical; then when that bit of code gets pasted in the terminal – nothing happens, or worse, the customer gets an error. Customers will quickly conclude that the product does not work or is too difficult to use, when the problem might be an outdated or incorrect code sample.

Accurate documentation matters because it affects the customer’s perception of a product’s reliability and ease of use. A documentation bug can be as damaging to the company’s reputation as a software bug.

What You’ll Find When You Test

How to Test

The best method for testing documentation is to follow the procedural part of the docs, step by step, including installation and using all the features of the product. This is more robust and reliable than a doc review (in which engineers read your docs and sign off), but it takes a lot more time. The most practical approach is to ask engineers to review everything, and test as much as you reasonably can.

When testing, consider these guidelines:

Decide how formal the documentation of your testing should be. One approach is to check off each line in the documentation on a printed page as its accuracy is verified. A more systematic approach is to create a table or spreadsheet, with each line of documentation inserted into a cell of the first column. (The approach you choose might have to depend on who does the testing, and how much time they want to spend.)

The spreadsheet approach gives the following benefits:

Who should test the docs?

Automated Testing with Linters

You can use linters to automatically test for things like prose problems, spelling errors, style issues, malformed html, and broken links.

You can run these tests yourself, or you can run these tests as part of a continuous integration (CI) workflow.

Here are some examples:

… and many more!