Skip to content

Support for generating test casesΒ #41

@emou

Description

@emou

Hi,

I've been thinking of modifying gotests to support using the testing/quick package to generate test cases
and optimize them for code coverage.

Have you thought about something similar before and is this something you would accept as a feature in the project, or is it better to fork it?

My high-level idea is to:

  • Use gotests to generate tests
  • Use testing/quick to generate test inputs
  • Measure the code coverage while running each test inputs
  • Shrink the test inputs to a minimal set that provides high coverage

Not sure how complex generating test cases for complex/nested structs will be, but it should be fairly simple for basic types.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions