Skip to content

Releases: forkforkdog/echidna-coverage

v2.0.2 - Fix view/pure function coverage

Choose a tag to compare

@forkforkdog forkforkdog released this 10 Nov 15:07

🐛 Bug Fix

Fixed a critical bug where contracts containing only view/pure functions would incorrectly show 0% coverage.

What was wrong

  • By default, echidna-coverage filters out view/pure functions to focus on state-changing functions
  • Contracts like QuoterV1 that only contain view functions would have all functions filtered out
  • This resulted in showing 0 total functions and 0% coverage, even when the contract was fully covered

What's fixed

  • Automatically includes all functions when filtering would result in zero functions
  • Contracts with only view/pure functions now show their actual coverage metrics
  • Example: QuoterV1 now correctly shows 97.22% coverage instead of 0%

Technical Details

  • Modified parseFunctions() in src/parsing/index.ts
  • Added fallback logic when filteredFunctions.length === 0 && functions.length > 0
  • No breaking changes - all existing functionality preserved

Full Changelog: v2.0.1...v2.0.2

ga-echidna-coverage v2.0.1

Choose a tag to compare

@forkforkdog forkforkdog released this 06 Oct 13:50

Bug Fixes

  • Fixed: Version check incorrectly showing "new version available" when current version is newer
    • Added proper semantic version comparison (e.g., 2.0.0 > 1.0.8)
    • Now only shows update message when remote version is actually greater

Installation

npm install -g ga-echidna-coverage@2.0.1

See CHANGELOG.md for full v2.0.0 feature list.