stretchr / testify

A toolkit with common assertions and mocks that plays nicely with the standard library
MIT License
22.51k stars 1.56k forks source link

suite.Run: validate Test* methods signature #1512

Open Barugoo opened 7 months ago

Barugoo commented 7 months ago

Summary

Added panic in suite.Run if Test* method has args or returning values

P.S. This is my first ever opensource contribution, so I'm very open to any code logic/styling criticism!

Changes

Motivation

As @wvell mentioned in issue #1508 currently, suite.Run returns an ambiguous error when executing with instance of Suite that has incorrect Test* methods signatures.

Related issues

Closes #1508