Re: [PATCH 0/7 v4] RFC: Python unit tests



On Wed, Sep 29, 2010 at 04:30:55PM +0200, Simón Pena wrote:
> Hi all,
> 
> This version has comprehensive information in the log messages. Summarizing:
> 
> * First the tests infrastructure is moved to /tests as suggested previously in
>   the mailing list [1]
> * Then, support for python unit tests is added
> * The testrunner class is updated so that it allows selecting test suites
>   from the command line. This commit isn't amended to the previous one, as the
>   feature it offers can be considered an extra / unneeded, so it can be skipped.
> * Several classes are tested
> * The setUp / tearDown methods' code related to loading/unloading plugins
>   is removed, as current plugin mechanism doesn't allow it. The load code is added
>   to the test constructors, but some of the tests will fail as they aren't run in
>   a "clean" environment.

Pushed.


These commits mean that they are a set of unit test written in python. In
order to run them you should have a GObject Introspection environment [1].

[1]
http://simonpena.com/blog/mswl/gobject-introspection-and-grilo-a-winner-combination/

> 
> Best regards,
> 
> Simon
> 
> [1] http://mail.gnome.org/archives/grilo-list/2010-August/msg00074.html
> 
> Simón Pena (7):
>   core: Moved tests infrastructure to /tests
>   core: Updated infrastructure to support python tests
>   tests: Command line arguments can be passed to testrunner
>   tests: Tested the PluginRegistry class using GI
>   tests: Tested the PluginMedia class using GI
>   tests: Tested the MetadataSource class using GI
>   tests: Removed setUp/tearDown code in python tests
> 
>  Makefile.am                          |    2 +-
>  configure.ac                         |    4 +-
>  src/Makefile.am                      |    2 -
>  src/tests/.gitignore                 |    1 -
>  src/tests/Makefile.am                |   63 -------------
>  src/tests/registry.c                 |  150 -------------------------------
>  tests/.gitignore                     |    1 +
>  tests/Makefile.am                    |   67 ++++++++++++++
>  tests/python/Makefile.am             |   25 +++++
>  tests/python/constants.py            |   50 ++++++++++
>  tests/python/test_metadata_source.py |   94 +++++++++++++++++++
>  tests/python/test_plugin.py          |   72 +++++++++++++++
>  tests/python/test_registry.py        |  164 ++++++++++++++++++++++++++++++++++
>  tests/python/testrunner.py           |   28 ++++++
>  tests/python/util.py.in              |    9 ++
>  tests/registry.c                     |  149 ++++++++++++++++++++++++++++++
>  16 files changed, 663 insertions(+), 218 deletions(-)
>  delete mode 100644 src/tests/.gitignore
>  delete mode 100644 src/tests/Makefile.am
>  delete mode 100644 src/tests/registry.c
>  create mode 100644 tests/.gitignore
>  create mode 100644 tests/Makefile.am
>  create mode 100644 tests/python/Makefile.am
>  create mode 100644 tests/python/constants.py
>  create mode 100644 tests/python/test_metadata_source.py
>  create mode 100644 tests/python/test_plugin.py
>  create mode 100644 tests/python/test_registry.py
>  create mode 100755 tests/python/testrunner.py
>  create mode 100644 tests/python/util.py.in
>  create mode 100644 tests/registry.c
> 
> _______________________________________________
> grilo-list mailing list
> grilo-list gnome org
> http://mail.gnome.org/mailman/listinfo/grilo-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]