Running tests on Windows

Matt Mackall mpm at selenic.com
Fri Jun 23 14:18:03 CDT 2006


On Fri, Jun 23, 2006 at 06:34:09PM +0200, Patrick M?zard wrote:
> Would not it be easier to rewrite tests in pure python instead of trying 
> to emulate shell commands?

If that were so, people would use Python as their shell. The ability
to write tests in pure Python has existed since the test framework was
introduced (and there's a Python test or two in there), but the fact
that said capability is so neglected is a good indicator that writing
tests as shell scripts is far preferable.

> python is already some kind of portable shell, most people likely to
> write shell test scripts for mercurial probably also know python

We get test cases on a daily basis from users in the form of a series
of shell commands.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list