I want to run some assertions when the plugin is instantiated and check its values in a unit test. Experts suggest that unit testing should be supplemented by other testing paradigms. With version 8 looming on the horizon, Danny ups our development game with automated testing of Drupal 8 modules - write functional tests like a pro! Types of tests available. Test locally with circleci build --job run-unit-kernel-tests and so on for each job. I looked for some examples but did not find much for unit tests of a plugin. Generate a module specifying the module name, machine name, the path, its description, drupal core and the package name. Build the container locally with docker build -t drupal-8.8-test ..