Problem/Motivation

Changes in the code can lead to unwanted effects and broken functionality as long as we don't have tests. While testing some parts might be very hard and time-consuming, we should at least basic functionality in the first step.

Steps to reproduce

Proposed resolution

Implement basic tests. Similar projects like reCaptcha are a good starting point to see how it can be achieved.

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Anybody created an issue. See original summary.

anybody’s picture

Status: Active » Needs work

Here we go with the basics based on https://git.drupalcode.org/project/recaptcha/-/blob/8.x-3.x/tests/src/Fu...
Not tested yet!

anybody’s picture

Status: Needs work » Needs review
anybody’s picture

Status: Needs review » Needs work

Trying to trigger the testbot...

anybody’s picture

Status: Needs work » Needs review
anybody’s picture

Status: Needs review » Fixed

Yay! Merging! :)

There are still things that should be tested to check more of the functionality, but this is a lot better than before!

  • Anybody committed 1f2e49e on 1.x
    Issue #3265152: Write tests for basic functionality
    
anybody’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.