[Scons-dev] Tests
Russel Winder
russel at winder.org.uk
Wed Sep 5 23:11:30 EDT 2012
On Tue, 2012-09-04 at 17:29 +0200, Dirk Bächle wrote:
[….]
> in my intermediate "test framework" project on Bitbucket I supported the
> special "sconstest-*.py" syntax for marking tests.
> When integrating the support for testing external Tools into the SCons
> core, I skipped this naming rule for the benefit of staying fully
> compatible with the regression tests so far, and not having to introduce
> another filename syntax.
This naming policy is actually extremely helpful, it is a pity is does
not work in the core. I have many modules that are support modules for
tests, they are not tests themselves but are just shared code to avoid
replication. Without a naming scheme you cannot do any modules that
aren't actually test modules.
Or perhaps there is a place for modules that are on the PYTHONPATH, not
actual tests but are modules accessible to tests.
> At the moment, meaning latest revision in "default", the test framework
> supports the skipping of whole
> folders (like, for a supporting Python package) by adding a
> "sconstest.skip" file. A list of single files to skip can also be
> specified in a file named ".exclude_tests (see
> QMTest/test-framework.rst, sect. "Finding Tests").
>
> Does this help already, or do you need a different functionality?
This is getting close. The issue is whether the directory is on the
PYTHONPATH or can trivially be put on the PYTHONPATH without egregious
hacking.
For now I will create a Support directory for the test/D hierarchy and
edit sys.path to add this to the path – but this is exactly egregious
hacking :-(
Thanks.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : <http://two.pairlist.net/pipermail/scons-dev/attachments/20120906/1a7e4e5c/attachment.pgp>
More information about the Scons-dev
mailing list