
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
Issue fork friendlycaptcha-3265152
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
Comment #2
anybodyHere we go with the basics based on https://git.drupalcode.org/project/recaptcha/-/blob/8.x-3.x/tests/src/Fu...
Not tested yet!
Comment #4
anybodyComment #5
anybodyTrying to trigger the testbot...
Comment #6
anybodyComment #7
anybodyYay! Merging! :)
There are still things that should be tested to check more of the functionality, but this is a lot better than before!
Comment #9
anybodyFollow-Up: #3265201: Write tests for more complex scenarios (AJAX, ...)