Skip to content

Add requirement for test files for each license rule #4953

@armijnhemel

Description

@armijnhemel

Short Description

There should be a requirement that there should be a test file for each license rule that is added to the licensedb.

Possible Labels

  • new feature

Select Category

  • Enhancement
  • Add License/Copyright
  • Scan Feature
  • Packaging
  • Documentation
  • Expand Support
  • Other

Describe the Update

There are currently some tests for existing rules, but not every rule has a test file:

$ find src/licensedcode/data/rules/ | wc -l
36483
$ find tests/licensedcode/data/datadriven/ -type f| grep yml | wc -l
4368

How This Feature will help you/your organization

It will help catch regressions whenever new rules are added.

Possible Solution/Implementation Details

Every addition to the licensedb should get a corresponding test file.

Example/Links if Any

Can you help with this Feature

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions