contrib/macosx/macosx-build.txt
author Gregory Szorc <gregory.szorc@gmail.com>
Sun, 20 Apr 2014 11:22:08 -0700
changeset 21426 791bdd65acd3
parent 2575 7289d20b18cd
permissions -rw-r--r--
run-tests: initial support for running tests with unittest The unittest package in Python's standard library provides an almost universal mechanism for defining and running tests. This patch starts the process of making run-tests.py talk to it. The main benefit of speaking unittest is that this will enable Mercurial's tests to be more easily consumed by other testing tools, like nose. This is useful for 3rd party extensions having their own test infrastructure, for example. Running tests in unittest mode will not result in completely sane behavior until the unittest mode is made the default execution mode. Expect things like double printing of output until support stabilizes.

to build a new macosx binary package:

install macpython from http://www.python.org/download/mac

install py2app from http://pythonmac.org/packages/

make sure /usr/local/bin is in your path

run bdist_mpkg in top-level hg directory

find packaged stuff in dist directory