Skip to content
@documente

Documenté

A literate testing framework to generate automated tests from documentation files

Logo for the Documenté literate testing framework

Welcome to Documenté

The Javascript literate testing framework

What is Documenté?

Documenté is a literate testing framework that allows you to generate automated tests from user documentation.

It integrates into test frameworks such as Cypress or Playwright, and builds on concepts from Behaviour-Driven-Development and literate programming.

Why Documenté?

Automated testing is a key component of modern software development. It allows to ensure that the software behaves as expected and to detect regressions.

However, writing and maintaining automated tests can be a tedious and time-consuming task. This is especially true for end-to-end tests, which are often written in a way that is not very readable and not very maintainable.

Documenté aims to solve this problem by providing a framework that allows to write automated tests in an almost natural language called Phrasé, using a syntax that is very close to the one used in BDD (Behaviour-Driven-Development).

Tests written with Phrasé are meant to be included in the documentation of the application. This allows to keep the documentation and the tests in sync, and to make the tests more accessible to non-technical people.

Regressions are easier to detect, as the tests are written in a way that is closer to the way the application is used.

Specification issues are also easier to spot and fix, as they are located in the same place as the tests.

How does it work?

Documenté reads markdown files containing Phrasé specifications and generates tests from them. The generated tests are then executed by your test runner of choice.

Documenté can be launched from the command line, from its programmatic API, or can be integrated in a CI/CD pipeline.

You can also skip the test extraction and directly write your tests with Phrasé inside your favorite automated test framework.

You can refer to the kitchen sink application to get an overview of Documenté testing capabilities.

The example project will also give you a good idea of how to write specifications.

Getting started

Refer to the Documenté website for more information.

Repositories overview

Here is an overview of the different repositories you'll find in this organization :

  • documente: the core monorepo, including Phrasé language, tooling to generate and run tests, and example projects
  • example-sut: a demo application along with its documentation to showcase Documenté features and its integration into CI/CD pipelines
  • phrase-checker: a web application to check Phrasé syntax

Contribute

To date, Documented is a solo initiative. I would be delighted to involve contributors in this endeavor, whether it's contributing to the framework's design, testing and suggesting modifications, or participating in the implementation. If you're interested, feel free to contact me at the following email address: pc.kerneis[at]gmail[dot]com.

Pinned Loading

  1. documente documente Public

    A literate testing framework to generate automated tests from documentation files

    TypeScript

  2. phrase-checker phrase-checker Public

    A web application for checking Phrasé syntax

    HTML

  3. example-sut example-sut Public

    An example application tested with Documenté and Phrasé

    JavaScript

Repositories

Showing 8 of 8 repositories
  • documente Public

    A literate testing framework to generate automated tests from documentation files

    documente/documente’s past year of commit activity
    TypeScript 0 GPL-3.0 0 0 0 Updated Apr 22, 2024
  • example-sut Public

    An example application tested with Documenté and Phrasé

    documente/example-sut’s past year of commit activity
    JavaScript 0 0 0 0 Updated Mar 30, 2024
  • documente.github.io Public

    Documenté's website

    documente/documente.github.io’s past year of commit activity
    CSS 0 GPL-3.0 0 0 0 Updated Mar 30, 2024
  • phrase-checker Public

    A web application for checking Phrasé syntax

    documente/phrase-checker’s past year of commit activity
    HTML 0 0 0 0 Updated Jan 25, 2024
  • .github Public
    documente/.github’s past year of commit activity
    0 0 0 0 Updated Jan 21, 2024
  • kitchen-sink Public archive

    A collection of short tests showcasing Documenté features

    documente/kitchen-sink’s past year of commit activity
    JavaScript 0 GPL-3.0 0 0 0 Updated Jan 21, 2024
  • phrase Public archive

    A fluent automated testing library for web applications

    documente/phrase’s past year of commit activity
    TypeScript 1 0 0 0 Updated Jan 21, 2024
  • minimal-example Public archive

    A minimal example of the Documenté framework

    documente/minimal-example’s past year of commit activity
    JavaScript 0 GPL-3.0 0 0 0 Updated Jan 21, 2024

Top languages

Loading…

Most used topics

Loading…