Test Reporting using Notion

A demo of the test reporting templates and pytest-notion

Building a test reporting template in Notion

Building templates in Notion is pretty simple.

Image for post
Image for post
Using group by and a filter to show only those test executions for the test cycle

Building a test reporter to integrate with Notion

Notion at the time of writing does not have an official API but is a number of unofficial libraries for working with the notion API.

Creating a new test cycle
Creating a test execution
Image for post
Image for post
Stack trace of a failed test
Adding filtered Test Execution board view to the Test Cycle page

Visualising tests

As the test cycle is linked to the test executions it’s pretty easy to see which tests were run and which tests failed as the unexecuted and failed columns of the board view show this.

Image for post
Image for post
Using a calendar view to visualise test executions

Improvements and wants

Here’s a few things that could be improved that would make Notion a truly killer app for test reporting.

Grab it and have a play

One of the great things about Notion is that you can share your pages and having others use these as templates.

Written by

Technical Lead at BJSS. Interested in Automated Testing, Dev practises, Metal, Chiptune. All views my own.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store