avocado.test: Correctly set self.tag when auto tagging

The auto tag feature was leaving self.tag unset, which
is not the behavior we want. Fix it.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
unittests/avocado: Add test_unittest.py

Simple unittest for the Test and Dropin class implementations.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.test: Add missing docstrings

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.test: Simplify Test.get_tagged_name interface

Test name and test tag can be derived from the class
attributes. Keeping the logdir param is still useful,
as we might want to unittest this interface in the
future.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #33 from avocado-framework/test-unittest

Test unittest
avocado.plugin.xunit: Pass type, traceback and system output.

Pass type, traceback and system output to the result XML.
Add function to escape/quote XML attributes.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
Merge pull request #35 from avocado-framework/docstrings_small_fixes

Docstrings small fixes
Merge pull request #36 from ruda/test_result_junit

avocado.plugin.xunit: Pass type, traceback and system output.
docs: Update GetStartedGuide with extra repos info

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
docs: Add Plugins and OutputPlugins documentation

To complement the xunit output plugin mode made by
Ruda.

CC: Ruda Moura <rmoura@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #37 from avocado-framework/documentation-updates

Documentation updates
Include an unit test for xUnit plugin.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
docs/source/conf.py: Change Copyright notice to Red Hat

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #38 from ruda/test_result_junit

Include an unit test for xUnit plugin.
avocado: Fix Red Hat misspelling in the copyright headers

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
unittests: Fix the last occurrence of RedHat

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.plugins.xunit: Fix Red Hat's name

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Add relationship between a test and the job it's being run on.

It's very useful for a given test to be able to get information
on the job it's running. For instance, if we want to notify
a server that a test has failed, the unique identification of
the failed test will be its tag together with the unique job id.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
avocado/job.py: give every single job an unique id

This is either generated automatically when the job is manually
run on a test machine, or generated by a test server and passed
along to the job on the machine that will run it.

The second use case creates a relationship between the server
that initiated the test and the running test itself, so that it
can identify itself back to the server.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Introduce test journal plugin

This plugin keeps a record of status changes to the tests
during a job. Each one of the status changes can then be
sent to an avocado server to give feedback to the test owner.

Signed-off-by: Cleber Rosa <crosa@redhat.com>