elidupree / live-prop-test

Fearlessly write both cheap and expensive runtime tests (contracts) for Rust functions.
Apache License 2.0
0 stars 0 forks source link

Make suggested regression test function names unique? #9

Open elidupree opened 4 years ago

elidupree commented 4 years ago

… Just so that you can naïvely copy-paste multiple of them if they happen to be able to compile already.

Probably use UUIDs for this.

elidupree commented 3 years ago

Counterpoint: Leaving unexplanatory test names in your code is bad code! Having the test names conflict with each other discourages this, which is good.

live-prop-test could attempt to guess a useful name for the test, based on the argument values and/or error message.

live-prop-test macros could snoop in your code to detect what test names already exist (probably bad?)