* Cleans up some unittests/makes Brew more testable
* Cleans up __repr__ output on some classes
* Removes unneeded imports
Change-Id: Ib33bdcc21c2f554f2312f9ed92de8e500e8356f2
- unit test captures stdout of print_results
- mock out init to get past all the argparse requirements
Change-Id: Ifec5dff1a96288289b73ea270964165cc67b6b1a
* Generates suites from test-containing classes,
unittest.TestSuite-derived classes (Fixtures), and
opencafe DatasetList classes as defined in a flat text file
called a 'brew' (runfile).
* Adds brew package in cafe.drivers.unittest
* Adds arguments, parser and runner modules in brew
package.
* Adds examples directory in repository root directory
* Adds example brewfile in examples directory
* Adds new 'cafe-brew' entry point to setup.py
* Adds unittests for brew package
Change-Id: I379c5b2c4bdf17bc49ce055ef4600b38a72a1140
Modified json_report.py to include new metrics
Modified xml_report.py to include new metrics
Modified SummarizeResults to handle new metrics
Added metatests for compile_results method
Change-Id: Iecd23d519e7cbaf4887f64b3d362942d39f50006
If a DataSetList is passed into a test that does not generate or
contain data the current behavior is that the test suites passes.
This proposal is to change that behavior. If a DSL cannot generate
data the test suite as a whole should still run but it should
fail. Otherwise teams using tooling to track and manage test results
will have false positives with mysteriously missing tests.
Added Metatests to check basic functionality.
Added Engine config section for unittest driver.
Change-Id: I3430e9573c3e99b80f25e7577709144d49c8eae2
* Incremented version to 0.2.2 for pypi release.
* Removed all post-install hooks. All initialization and configuration
should be done through the cafe-config cli tool.
* Added setup.cfg with support for universal bdist wheel.
* Updated MANIFEST.in file.
* Updated README.rst to reflect new install procedures.
* Modified cafe-config so that initialization command is now just
"cafe-config init".
* Since the ".opencafe" directory is no longer initialized at install
while access to the source code is guaranteed, the plugins are now
distributed as package_data, and installed as such to site-packages
under the new "plugins" directory within the "cafe" namespace.
* The plugins directory is moved to the cafe package directory as
package_data.
* The plugin cache is no longer created at initialization, and all
code relating to it in the cli.py and managers.py file has been
removed.
* Removed pip-requires file in favor of including the only requirement,
'six', in setup.py. The plan is to refactor so as to remove the
dependency on six eventually.
* Renamed test-requirements.txt to test-requires.
* Added Authors.rst
Change-Id: I28a605f926ae5f2d972a6a36171d0e4eb92cac09
* cclogger now warns when expected enviornment variables
are unset, instead of throwing exceptions
* cclogging's init_root_file_handler() now takes a
log handler as an optional argument (for forward
compatability with scripts and log parsing mechanisms)
* If CAFE_MASTER_LOG_FILE_NAME is unset, the root logger
will default to a NullHandler.
* Moves unittest-specific logging to the unittest runner
module.
* Adds unittests for getLogger() function
* Fixes outstanding flake8 issues for edited files
Change-Id: I61578109fe7b86fc1bfec8755c710e7f6de9f1f4
* Changes docstrings from single to double quotes.
* Reformats multiline declarations with non-visual indentation.
* Turns rsyslog resource into a plugin
* Moves plugin-specific unittests into their respective plugins
* Add tox support to plugins with tests
Change-Id: Ife172b165004c366ad64faa7c00afceb8e99c76d
This is to fix nose as it seems to require all tests to be sitting at
the root project level.
Addresses GitHub #17
Change-Id: Ia50c45c20e5300d17cdb13283ba1c1e9783f739f