[Checkins] [zopefoundation/zope.testrunner] 6ca964: fix(findcode): better finding of test code

GitHub noreply at github.com
Thu Dec 18 18:47:30 CET 2014


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.testrunner
  Commit: 6ca964286c671a43a1d28302174ca0b20cfedb9c
      https://github.com/zopefoundation/zope.testrunner/commit/6ca964286c671a43a1d28302174ca0b20cfedb9c
  Author: Patrick Gerken <do3cc at patrick-gerken.de>
  Date:   2014-12-17 (Wed, 17 Dec 2014)

  Changed paths:
    M CHANGES.rst
    M src/zope/testrunner/find.py
    M src/zope/testrunner/tests/test_doctest.py
    M src/zope/testrunner/tests/testrunner-discovery.txt

  Log Message:
  -----------
  fix(findcode): better finding of test code

This fix sorts the --paths to look for code.
Longest paths come first. This is for cases where
one checks out other sources within his source directory.
In such a case this structure can happen:
my_package
my_package/src/some_other_package

Now when my_package gets found first. It logs an import
error and then goes on.
by sorting with longest paths first. I always get the most
specific match first. Since the loop is short circuited here,
it will never look at my_package.

This fixes #15


  Commit: 765edb93fd8437471d58b92c1cbf3126373b668d
      https://github.com/zopefoundation/zope.testrunner/commit/765edb93fd8437471d58b92c1cbf3126373b668d
  Author: Patrick Gerken <do3cc at patrick-gerken.de>
  Date:   2014-12-17 (Wed, 17 Dec 2014)

  Changed paths:
    A src/zope/testrunner/tests/testrunner-nestedcode.txt

  Log Message:
  -----------
  Beginners mistake


  Commit: 4330ad8d30be82082fdc4ee67ea96997a4f1284d
      https://github.com/zopefoundation/zope.testrunner/commit/4330ad8d30be82082fdc4ee67ea96997a4f1284d
  Author: Patrick Gerken <do3cc at patrick-gerken.de>
  Date:   2014-12-18 (Thu, 18 Dec 2014)

  Changed paths:
    M src/zope/testrunner/tests/testrunner-discovery.txt

  Log Message:
  -----------
  revert the wrongly changed test code


  Commit: 80e54771b767ff77c5a85d3b94bb8bc0a6dcd9c8
      https://github.com/zopefoundation/zope.testrunner/commit/80e54771b767ff77c5a85d3b94bb8bc0a6dcd9c8
  Author: Patrick Gerken <do3cc at patrick-gerken.de>
  Date:   2014-12-18 (Thu, 18 Dec 2014)

  Changed paths:
    M src/zope/testrunner/find.py
    M src/zope/testrunner/options.py

  Log Message:
  -----------
  Move sorting to different location


  Commit: d9dbbdc5338839c27be88da499cb20c8000e6b25
      https://github.com/zopefoundation/zope.testrunner/commit/d9dbbdc5338839c27be88da499cb20c8000e6b25
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2014-12-18 (Thu, 18 Dec 2014)

  Changed paths:
    M CHANGES.rst
    M src/zope/testrunner/options.py
    M src/zope/testrunner/tests/test_doctest.py
    A src/zope/testrunner/tests/testrunner-nestedcode.txt

  Log Message:
  -----------
  Merge pull request #16 from zopefoundation/nested

Correctly deal with overlapping --test-path arguments

Fixes #15


Compare: https://github.com/zopefoundation/zope.testrunner/compare/ba28833f8f7f...d9dbbdc53388


More information about the checkins mailing list