department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
99 stars 69 forks source link

Spike: Testing Improvements #4109

Closed acrollet closed 2 years ago

acrollet commented 3 years ago

User Story or Problem Statement

As a developer, I need tests to be:

Acceptance Criteria

Participants

Required: @indytechcook @swirtSJW @kaise-lafrai @ndouglas @ethanteague @acrollet @ElijahLynn @olivereri Optional: @mchelen-gov

Implementation steps

Possible solutions to discuss:

acrollet commented 3 years ago

An alternative to forking yaml-tests or moving to yaml-tests is to use an entirely different test runner suite. There are not a lot of options out there for flexible test runners, but I believe I've found a good one: task

Positives:

Negatives:

At a glance, quite a few of our checks can be parallelized, so we should be able to shave some time off the testing process using a tool like this...

ndouglas commented 3 years ago

Thoughts so far re: Cypress:

And other things:

Yeah, this isn't the first time periodic has snuck by testing. We should probably run these as a test. But we can't currently because it actually affects something...

This ties in to a recurring issue with side-effect-ful tests and the issues that they frequently cause.

oksana-c commented 3 years ago

related Check for PHP notices, warnings & errors after the test run on pull request environments

acrollet commented 3 years ago

related https://github.com/bluehorndigital/setup-drupal