1. 14 10月, 2017 1 次提交
  2. 13 10月, 2017 1 次提交
  3. 06 10月, 2017 2 次提交
  4. 03 10月, 2017 1 次提交
  5. 20 9月, 2017 1 次提交
  6. 15 9月, 2017 2 次提交
  7. 23 8月, 2017 2 次提交
    • C
      avocado/core/test.py: rename TestName to TestID · a67b2fb4
      Cleber Rosa 提交于
      The current TestName class records more than a test name (according
      to the Avocado specification).  It records, and by default, presents
      the Test ID (__str__() and __repr__()).
      
      The Test Name, again according to the Avocado specifications, is
      contained within a Test ID, so it's not necessary to have two
      different classes IMO.
      
      Finally, the str_filesystem() method was adapted to be coherent with
      the fact that it returns a file system representation of the Test ID,
      not the Test Name.  It also became a property, to match the same use
      of str_uid and str_variant.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      a67b2fb4
    • C
      avocado/core/test.py: do not force TestName type · 66e8c10d
      Cleber Rosa 提交于
      Python code should not be doing type check/enforcement.
      
      This bit was here temporarily, when the name parameter to
      avocado.core.test.Test got changed.  Now it's way past time to remove
      it.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      66e8c10d
  8. 22 8月, 2017 1 次提交
  9. 27 4月, 2017 1 次提交
    • A
      skip classes: internal improvements · d6056afb
      Amador Pahim 提交于
      Due to the deprecation of the self.skip(), the availability of the skip
      decorators and the new CANCEL status, some internal improvements are
      important to keep our behaviour sane and our own code sound and clean.
      
      - The test.SkipTest class was renamed to test.MockingTest to be even more
        generic, intending to be overridden by sub-classes that make the test
        to end both with SKIP or CANCEL status. To keep it generic,
        test.MockingTest class will not SKIP the test if used directly anymore.
      
      - The test.TimeOutSkipTest and test.ReplaySkipTest classes now are using
        the skip decorators instead of raising an exception in setUp(), since
        'skipping' the test means 'don't execute anything', not even the
        setUp().
      
      - The test.DryRunTest class, which is expected to log itself in setUp()
        and then abort the test execution, is now using self.cancel() (instead
        of raising a SKIP exception), being now compliant with the concept
        that a SKIP test cannot execute anything.
      
      - Selftests were adjusted accordingly.
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      d6056afb
  10. 04 3月, 2017 1 次提交
  11. 24 2月, 2017 1 次提交
  12. 06 2月, 2017 1 次提交
  13. 03 2月, 2017 1 次提交
  14. 07 11月, 2016 1 次提交
  15. 23 7月, 2016 1 次提交
  16. 26 4月, 2016 1 次提交
    • L
      avocado: Implement serialized test ids · 5973e898
      Lukáš Doktor 提交于
      This commit implements the serialized test ids described in the
      Introduce proper test IDs RFC.
      
      https://www.redhat.com/archives/avocado-devel/2016-March/msg00024.html
      
      It implements `TestName` class, which contains the test uid, test name
      and the variant uid and allows querying for the file-system-friendly
      name.
      
      The workflow is:
      
      1. tests are discovered, name is translated to "Test Name" by loader
      2. test_suite is passed to the runner (new) along with the number of
         tests+variants to be executed (used to get number of digits)
      3. the Mux (params generator) yields the template + (new) variant id
      4. the runner replaces template['name'] to TestName(uid, test_name,
         variant_id); where uid is currently no executed tests, test_name is
         the original name from Loader and variant_id is either None or the
         variant index.
      
      This commit makes the `tag` argument unused. To avoid problems a warning
      is issued on it's usage so we can remove it in the upcoming releases.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      5973e898
  17. 14 4月, 2016 3 次提交
  18. 11 4月, 2016 2 次提交
  19. 25 2月, 2016 1 次提交
  20. 30 9月, 2015 1 次提交
  21. 03 9月, 2015 2 次提交
    • C
      Selftests: remove evil "simple import magic" · 6149e2dc
      Cleber Rosa 提交于
      Even though I may be the one to blame about coming up with this
      "simple import magic", I believe it was a mistake and we should get
      rid of them.
      
      There are a couple of other ways to actually do development out of
      of a source tree, including running unittests that do not require
      this amount of boiler plate code. Examples include just setting
      the PYTHONPATH environment variable to actually run (setuptools based)
      `python setup.py develop`.
      
      The little bits of what looks like the import magic that was left, is
      not really import magic. It's just that functional tests need to locate
      the Avocado source tree base directory to run the test runner from it.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      6149e2dc
    • C
      Selftests: move to adhere to unittest discover default pattern · 24d87eb4
      Cleber Rosa 提交于
      To be honest, our test code could still be kept in the same directories and
      have the same names. But I think we can improve two things here:
      
      1) Flatten a little bit the directory structure of selftests. Two path
      components are being dropped here: "all" and "avocado". So that
      "selftests/all/functional/avocado" becomes simply
      "selftests/functional".
      
      2) File names match what is, by default, recognized by unittest (the
      Standard Library module) based discovery of tests. That means that
      doc_build_test.py becomes test_doc_build.py. Not a big deal IMHO.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      24d87eb4
  22. 31 7月, 2015 1 次提交
  23. 18 6月, 2015 1 次提交
  24. 12 6月, 2015 1 次提交
    • L
      avocado.core.test: Fix problem with unittest compatibility · a795b877
      Lucas Meneghel Rodrigues 提交于
      Introduced with commit d6abdcd4,
      avocado tests no longer report correctly to the unittest runner.
      The reason is that there is a structure that must be correctly
      updated by the run() method (the result instance), that was not
      being updated in the new implementation.
      
      Therefore, one possible fix, presented here, is to once again
      *not* implement run() at all. this way we avoid messing around
      with internal data structures, and when avocado is executed
      under nosetests, or the default unittest runner, we get the
      expected behavior of the method. The downside is that we have
      less perceived integration among both classes.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      a795b877
  25. 09 6月, 2015 1 次提交
    • C
      API review: move avocado.test to avocado.core.test and expose avocado.Test · 08810698
      Cleber Rosa 提交于
      Only avocado.Test is of general interest to test writers. For that reason
      the entire test module has been moved to the avocado.core namespace.
      
      The recommended way to go about writing instrumented tests is something like:
      
         from avocado import Test
         class MyTest(Test):
            def test_foo(self):
               do_stuff()
      
      Changes from v2:
      * Fixed references in docstrings
      * Fixed refrences of avocado.test in Writing Test Guide docs
      
      Changes from v1:
      * Fixed comment typo on commit message
      * Fixed old reference of avocado.test (then test.Test) instead of
        avocado then Test in GDB docs.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      08810698
  26. 14 4月, 2015 2 次提交
  27. 07 4月, 2015 1 次提交
  28. 18 3月, 2015 1 次提交
  29. 29 1月, 2015 1 次提交
  30. 09 1月, 2015 1 次提交
  31. 11 12月, 2014 1 次提交
  32. 28 11月, 2014 1 次提交