[policy, no patch] Improving the test suite

Created on 4 July 2023, over 1 year ago
Updated 26 April 2024, 7 months ago

Problem/Motivation

This is a followup on suggestions made in 🌱 [policy, no patch] Better scoping for bug fix test coverage RTBC

Proposed resolution

TBD

Remaining tasks

TBD

🌱 Plan
Status

Active

Version

11.0 πŸ”₯

Component
OtherΒ  β†’

Last updated about 3 hours ago

Created by

πŸ‡³πŸ‡ΏNew Zealand quietone

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @quietone
  • πŸ‡ΊπŸ‡ΈUnited States dww

    Thanks for opening this! Not sure if this should be "policy, no patch", or "meta", or... πŸ˜…

    Added the key final point from my comment that this issue was split off to address 🌱 [policy, no patch] Better scoping for bug fix test coverage RTBC :

    Prioritize (like core initiative style) efforts to rationalize, standardize and clean-up our existing tests.
    We've learned *a lot* as a community about tests over the last ~6+ years, but lots of our tests haven't caught up to that. The tests for Views module, for example, are completely whack. Many views handlers have dedicated Kernel tests for them (yay), but other handlers are only tested via previewing a view in the views UI with a Functional test (WTF?). Part of why writing new tests is so hard is that if you look for existing test coverage of something, it's very unlikely you'll find it, and if you do, you might find a completely absurd thing to base your new test on. :(

  • πŸ‡ΊπŸ‡ΈUnited States dww

    Also adding the 5th point. πŸ˜…

    Make it easier and faster to iterate on tests in the issue queue (e.g. #2569585: Split incoming patches into psr0/psr4 tests and code and run just new tests first. β†’ ).

  • πŸ‡¬πŸ‡§United Kingdom joachim

    > Prioritize (like core initiative style) efforts to rationalize, standardize and clean-up our existing tests.

    That could come under the 🌱 Boilerplate reduction initiative Active which I am trying to get up and running.

    > The tests for Views module, for example, are completely whack.

    Yes! And the setup that the tests do to create views is crazy as well.

Production build 0.71.5 2024