1. 08 4月, 2015 5 次提交
    • R
      Introduce test methods filter. · c48a88ca
      Rudá Moura 提交于
      It's now possible to select test methods to execute, in
      the multiple tests context, by using a special form.
      
      When you select `filename.py:test_method_pattern` it will filter out
      every test methods and use just the test_method_pattern passed.
      The pattern is a shell like feature, so `test_connection*` will select
      every test method that starts with `test_connection` to execute.
      
      Example:
      
      $ avocado run examples/tests/gdbtest.py:\*connect*\
      
      will run:
      
      (1/3) gdbtest.py:GdbTest.test_connect_multiple_clients: PASS (2.41 s)
      (2/3) gdbtest.py:GdbTest.test_disconnect: PASS (2.52 s)
      (3/3) gdbtest.py:GdbTest.test_disconnect_raw: PASS (4.52 s)
      
      and
      
      $ avocado run examples/tests/gdbtest.py:test_connect_multiple_clients
      
      will test just:
      
      (1/1) gdbtest.py:GdbTest.test_connect_multiple_clients: PASS (2.34 s)
      
      Note that we've scape the test method pattern to avoid shell expansion!
      Signed-off-by: NRudá Moura <rmoura@redhat.com>
      c48a88ca
    • R
      Documentation: Update topics regarding the changes of unittest compatibility. · 12d06923
      Rudá Moura 提交于
      Remove words for setup, cleanup and action and update to the new slang:
      setUp, tearDown and runTest.
      Signed-off-by: NRudá Moura <rmoura@redhat.com>
      12d06923
    • R
      avocado.plugins.test_list: Display multiple tests. · 8c9729cd
      Rudá Moura 提交于
      When a class has multiple tests, display each test.
      
      Example:
      
      INSTRUMENTED examples/tests/gdbtest.py:GdbTest.test_connect_multiple_clients
      Signed-off-by: NRudá Moura <rmoura@redhat.com>
      8c9729cd
    • R
      avocado.test: Set datadir based upon filename. · 133b60e8
      Rudá Moura 提交于
      Set the datadir for test based upon the filename of the class,
      so that multiple test methods in a same test class will share
      the same datadir directory.
      Signed-off-by: NRudá Moura <rmoura@redhat.com>
      133b60e8
    • R
      avocado.loader: Introduce multiple tests. · a0197f21
      Rudá Moura 提交于
      Introduce multiple test methods defined in Avocado Test class.
      The tests looks like the one of unittest module.
      
      The test methods are defined when you create test<something> methods,
      inside the test class. Each test methods becomes a test case unit
      to execute.
      
      Example:
      
      class MyTest(avocado.test.Test):
          def test_eone(self)...
          def test_two(self)...
          def testAnotherone(self)...
      Signed-off-by: NRudá Moura <rmoura@redhat.com>
      a0197f21
  2. 07 4月, 2015 2 次提交
  3. 03 4月, 2015 1 次提交
  4. 01 4月, 2015 2 次提交
  5. 31 3月, 2015 4 次提交
  6. 30 3月, 2015 6 次提交
  7. 29 3月, 2015 1 次提交
  8. 28 3月, 2015 6 次提交
  9. 27 3月, 2015 13 次提交