[PATCH 0/7] Request for comments: Unit tests v2



Hi all,

I've modified the unit test patches so first the infrastructure is moved to /tests
and then the python tests support is added. That way, we can commit these two changes,
and worry later about the tests themselves.

The third commit could be pushed, too, if you find that feature useful: I'm using it
to just test a python unit test instead of testing all the suite cases.

Cheers,

Simon

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                    |   63 +++++++++++++
 tests/python/Makefile.am             |   22 +++++
 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           |   26 ++++++
 tests/python/util.py.in              |    9 ++
 tests/registry.c                     |  149 ++++++++++++++++++++++++++++++
 16 files changed, 654 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



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