writing tests for an extension
Benoît Allard
benoit at aeteurope.nl
Fri Dec 5 07:01:03 CST 2008
Dov Feldstern wrote:
>> myext-repo/
>> myext/
>> __init__.py
>> myext.py
>> myext-utils.py
>> tests/
>> test-myext.py
>>
>> and then in .hgrc:
>> myext=/path/to/myrepo-ext/myrepo
>>
>> Thanks!
>> Dov
>>
>
> Or rather:
>
> myext-repo/
> tests/
> test-myext.py
> my-ext/
> __init__.py
> myext.py
> myext-utils.py
>
> and then .hgrc would have to read:
> myext=path/to/myrepo-ext/tests/myrepo
>
I would suggest:
myext-repo/
test-myext.py
my-ext/
__init__.py
myext.py
myext-utils.py
Running tests with
$ python ../your-hg-repo/tests/run-tests.py test-myext
and with hgrc:
myext=
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4258 bytes
Desc: S/MIME Cryptographic Signature
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20081205/70214d89/attachment.bin
More information about the Mercurial-devel
mailing list