[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: call for more ert tests
From: |
Lars Magne Ingebrigtsen |
Subject: |
Re: call for more ert tests |
Date: |
Tue, 25 Jun 2013 13:06:18 +0200 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) |
Óscar Fuentes <address@hidden> writes:
> Eli Zaretskii <address@hidden> writes:
>>
>> I believe it's good, obviously. The problem is with introducing it
>> without losing too many contributors.
I think the bar to contributing to Emacs is high enough as it is without
adding further requirements.
> I wonder about the possibility of making Emacs testing an "interesting"
> task. Something like a test framework which is complete and expressive
> enough to allow describing testable conditions on a very high level way.
ert is fine, but, I think, somewhat misguided. It allows us to test the
functions we have Lisp interfaces for, but not the deep internal C
bits. And that's kinda backward.
When I write Lisp code, I'm testing it interactively all the time. What
should this function return? Does it return what I'm expecting? No?
*hack hack* Now? Yes. Done.
You really need a test harness more for languages where you don't have
that extremely rapid and natural write-test-write cycle, because nobody
can test stuff that requires a compile (or startup) cycle as
thoroughly as that. For instance, when I wrote the
:max-width/:max-height code the other day, the result depends on six
different things: image width/height, and the four
:width/:height/:max-width/:max-height parameters.
If I could have called that function from Lisp directly, I would have
tested a much larger variety of combinations than I ended up doing.
So my feeling about adding more ert tests is: Meh. More work to write,
more work to maintain, doesn't really give us that much.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
- Re: call for more ert tests, (continued)
- Re: call for more ert tests, Sebastian Wiesner, 2013/06/24
- Re: call for more ert tests, Eli Zaretskii, 2013/06/24
- Re: call for more ert tests, Lennart Borgman, 2013/06/24
- Re: call for more ert tests, Óscar Fuentes, 2013/06/24
- Re: call for more ert tests, John Wiegley, 2013/06/24
- Re: call for more ert tests, Leo Liu, 2013/06/24
- Re: call for more ert tests, John Wiegley, 2013/06/24
- Re: call for more ert tests, Stefan Monnier, 2013/06/24
- Re: call for more ert tests, Stephen J. Turnbull, 2013/06/24
- Re: call for more ert tests, Eli Zaretskii, 2013/06/25
- Re: call for more ert tests,
Lars Magne Ingebrigtsen <=
- Re: call for more ert tests, Juanma Barranquero, 2013/06/25
- Re: call for more ert tests, Eli Zaretskii, 2013/06/25
- Re: call for more ert tests, Lars Magne Ingebrigtsen, 2013/06/25
- Re: call for more ert tests, Eli Zaretskii, 2013/06/25
- Re: call for more ert tests, Sebastian Wiesner, 2013/06/25
- Re: call for more ert tests, Lars Magne Ingebrigtsen, 2013/06/25
- Re: call for more ert tests, Ted Zlatanov, 2013/06/28
- Re: call for more ert tests, Juanma Barranquero, 2013/06/28
- Re: call for more ert tests, Dmitry Gutov, 2013/06/28
- Re: call for more ert tests, Julien Danjou, 2013/06/26