Skip to content

Coverage: More robust test/dependency contract checks #1962

@onbjerg

Description

@onbjerg

Currently everything in files ending with .t.sol is filtered out, but this is not super robust:

  • Some projects might have implementations of base contracts that they test in .t.sol files (e.g. Solmate)
  • Not all projects use .t.sol to denote tests

A more robust check would be to filter out contracts that only have test*, constructor and setUp functions.

The same is true for the dependency contract check: all contracts in lib/ are filtered out, but some projects might store their dependencies elsewhere (e.g. node_modules/).

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions