docurun
1.0.0
DocuRun is a tool to run your documentation as integration tests.
I bet both your integration tests and your documentation are disappointing.
If you make a change that breaks the documented behavior of the user interface, you probably only find out when your users complain.
DocuRun is a tool that takes markdown files including playwright code blocks and runs them as integration tests. It produces a beautiful documentation website with screenshots taken during the tests.
docurun/index.md
file that looks like this: npx docurun
docurun/website/
directory containing a static website with your documentation and screenshots.
If some tests failed, the documentation will contain the screenshots of the page at the time of the failure, and the error message.You can also run DocuRun in a docker container, without having to install node.js on your machin:
docker run -v $(pwd)/docurun:/docurun -it lovasoa/docurun
See lovaoa/docurun on Docker Hub.
This shows the executable documentation of the SQLPage website building tool.
An error run looks like this in the terminal
$ npx docurun
> [email protected] start
> node cli.js
Processing all files in ./docurun/:
- download_sqlpage.md
- star_a_repository.md.
Saving results to ./docurun/website/.
✅ download_sqlpage
Error while executing code:
await page.getByText('inexistent element').click()
locator.click: Timeout 30000ms exceeded.
Call log:
- waiting for getByText('inexistent element')
star_a_repository
And rendered: