Problem/Motivation

When someone submits patches to this module, there is no way for the maintainers to tell if that patch introduces a regression.

Proposed resolution

Add automated tests.

Remaining tasks

  1. Write a patch
  2. Maintainer set up automated testing for issues
  3. Review and feedback
  4. RTBC and feedback
  5. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

szhu created an issue. See original summary.

szhu’s picture

Assigned: Unassigned » szhu
Status: Active » Needs work
StatusFileSize
new1.61 KB

Here is an initial patch, I still have more tests to add so don't commit, please :)

szhu’s picture

StatusFileSize
new4.82 KB
new3.51 KB

Here is an updated patch, I need to clean it up, I am just posting my progress thus far.

szhu’s picture

StatusFileSize
new5.55 KB
new3.79 KB

Updated duplicated node test.

szhu’s picture

StatusFileSize
new15.55 KB
new15.06 KB

Ready for final review.

szhu’s picture

Status: Needs work » Needs review
geoanders’s picture

Version: 8.x-2.0 » 8.x-3.x-dev

Testing /var/www/html/web/anti_duplicates

SSSSSS 6 / 6 (100%)

Time: 03:06.108, Memory: 6.00 MB

OK, but incomplete, skipped, or risky tests!
Tests: 6, Assertions: 6, Skipped: 6.

Remaining self deprecation notices (5)

3x: Declaring ::setUp without a void return typehint in Drupal\Tests\anti_duplicates\FunctionalJavascript\GlobalConfigurationTest is deprecated in drupal:9.0.0. Typehinting will be required before drupal:10.0.0. See https://www.drupal.org/node/3114724
3x in DrupalListener::startTest from Drupal\Tests\Listeners

2x: Declaring ::setUp without a void return typehint in Drupal\Tests\anti_duplicates\FunctionalJavascript\DetectDuplicateNodeTest is deprecated in drupal:9.0.0. Typehinting will be required before drupal:10.0.0. See https://www.drupal.org/node/3114724
2x in DrupalListener::startTest from Drupal\Tests\Listeners

  • geoanders committed d8d887f on 8.x-3.x
    Issue #3192574 by szhu: Add automated tests
    
geoanders’s picture

Status: Needs review » Fixed

Seems to be working on latest branch. All tests have passed. Setup on project to run weekly.

geoanders’s picture

Status: Fixed » Closed (fixed)