Skip to content

Improve feature verification #7132

Closed
Closed

Description

@fregante

Most important of all:

  • I think we should move the verification to go through Vitest. It will probably look like:

     describe('features', () => {
     	for (const feature of getFeatureMeta() {
     		test(feature.id, () => {
     			// our current tests, but using assert instead of `return "ERR:"`
     		})
     	}
     });
  • Document CSS features in readme as well, so that they can be linkified. Example: clean-checks-list. Features can be documented there and hidden via <!-- --> if necessary

  • Update rgh-feature-descriptions to show this description

  • Add check to verify-features.ts to ensure every .css feature

    • is documented in readme
    • has test URLs
    • does not have Test URLs if it has a .tsx sibling
  • Move renames to renames.json

  • Verify renames in renames.json

    • Old feature names cannot appear anywhere (use grep)
    • New feature names must exist

Originally posted by @fregante in #6000 (comment)

Activity

  1. added
    meta
    on Dec 2, 2023
  2. fregante commented on Dec 11, 2023

    @fregante
    MemberAuthor

    The CSS test-urls check was attempted in #7145 1b7b1828 but was not finalized. It can be continued there.

    Edit: On second thought, let's wait until every feature has it, and then just move it to features.test.ts, much easier.

    • Move verify-test-urls.sh to Vitest

    I don’t think we'll need annotations after every feature has it. Situation, 57 missing:

    bash build/verify-test-urls.sh source/features/*.tsx
    
    bash build/verify-test-urls.sh source/features/*.tsx | grep '❌'
    
  3. added
    small
    on Dec 11, 2023
  4. fregante commented on Dec 28, 2023

    @fregante
    MemberAuthor

    The test URLs check is failing on the GitHub bugs CSS file: #7189

    • exclude that file
  5. fregante commented on Aug 27, 2024

    @fregante
    MemberAuthor

    Will move CSS documentation to its own issue

  6. locked as resolved and limited conversation to collaborators on Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedmetasmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions