Zulip Chat Archive

Stream: general

Topic: automated testing


Vadim Fomin (Nov 18 2024 at 07:16):

What's the Lean way to run automated tests in Lean projects? Is there a Lean analogue to Python's pytest or unittest?

Asei Inoue (Nov 18 2024 at 08:49):

you can register test_driver function

Asei Inoue (Nov 18 2024 at 08:50):

then run lake test in terminal.

Asei Inoue (Nov 18 2024 at 08:51):

I don’t know popular test library of Lean.
But there is a library called plausible for property test.

Asei Inoue (Nov 18 2024 at 08:52):

you can use just #guard or example command for unit test.

Daniil Kisel (Nov 18 2024 at 09:04):

See also: LSpec, specs, nest.


Last updated: May 02 2025 at 03:31 UTC