Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Testmode

No security coverage Under active development 128 sites

This module helps ensure accurate testing by filtering out existing content on your site. It allows you to isolate content created specifically for your tests, preventing interference and false positives. When a test is run with a specific tag, the module activates a filter that only displays test-related content to avoid confusion.

Alter existing site content and other configurations when running tests.

This is a module to support testing, so it is not expected to be used in
production (although, it adheres to Drupal coding standards and has good test
coverage).

Development of this module takes place on GitHub: https://github.com/drevops/testmode

Use case

Running a Behat test on the site with existing content may result in
false positives because of the live content being mixed with test content.

Example: a list of 3 featured articles. When the test creates 3 articles and make
them featured, there may be existing featured articles that will confuse tests
resulting in false positive failure.

How it works

1. When writing Behat tests, all test content items (nodes,
terms, users) follow specific pattern. For example, node titles start with
[TEST] .
2. A machine name of a view, which needs to be tested, is added to
Testmate configuration form.
3. Behat test tagged with @testmode will put
the site in test mode that will filter-out all items in the view that do not
fit the pattern, leaving only content items created by the test.

Drupal 10–11 PHP >=8.3

Ask your assistant about Testmode

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
13
Tracked since
Mar 2023
Latest release
1 month ago
Releases (12 mo)
5 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.8.0 Stable 10–11 PHP >=8.3 Oct 13, 2026
2.7.2 Stable 10–11 Aug 17, 2026
2.7.1 Stable 10–11 Jun 13, 2026
2.7.0 Stable 10–11 Apr 11, 2026
2.6.1 Stable 10–11 Apr 1, 2026
2.6.0 Stable 10–11 Nov 27, 2024
2.5.0 Stable 9–11 PHP >=8.1 Jul 1, 2024
2.x-dev Dev 10–11 PHP >=8.3 Jan 15, 2024
2.4.0 Stable 9–10 PHP >=8.1 Jan 15, 2024
2.3.0 Stable 9–10 Mar 14, 2023