Strapi Plugin Testing

screenshot of Strapi Plugin Testing

Out of the box automated testing for Strapi

Overview

The Testing plugin for Strapi is a community plugin that automates the unit testing process for Strapi applications. It creates all the necessary default files needed for testing and is compatible with Strapi version 3.5.4.

Features

  • Automates all the steps in the unit test page of the Strapi documentation.
  • Executes all the files inside the "tests" folder ending in ".test.js" using Jest.
  • Supports sharing of the same Strapi instance among multiple tests for faster execution.
  • Offers helper functions for starting a new Strapi instance and creating a new Strapi Super Admin.
  • Provides additional use cases like test watch, bootstrapping project with dummy data, and troubleshooting.

Summary

The Testing plugin for Strapi is a useful tool for automating unit testing in Strapi applications. It simplifies the process by creating default test files and providing helper functions to start a new Strapi instance and perform common testing tasks. It is compatible with Strapi version 3.5.4 and offers additional features like test watch, bootstrapping with dummy data, and troubleshooting. Although still in Beta, the plugin welcomes feedback and has plans for future functionalities.