Commits

Mikhail Korobov committed 536c1bd

Test suites are renamed because they are all slow

  • Participants
  • Parent commits 161c4b6

Comments (0)

Files changed (3)

File docs/testing.rst

     cd fab_deploy_tests
     ./runtests.py <VM name or uid> <what to run>
 
-<what to run> can be ``fast``, ``slow``, ``all``, ``prepare`` or any
+<what to run> can be ``misc``, ``deploy``, ``all``, ``prepare`` or any
 value acceptable by ``unittest.main()`` (e.g. a list of test cases).
 
 Some tests require additional prepared snapshots in order to greatly speedup

File fab_deploy/system.py

 
 @utils.run_as('root')
 def install_sudo():
+    """ Installs sudo on server. """
     run('aptitude install -y sudo')
 
 @utils.run_as_sudo

File fab_deploy_tests/runtests.py

         sys.exit(1)
 
     atexit.register(beep)
+    FabDeployTest.vm_name = sys.argv[1]
 
-    FabDeployTest.vm_name = sys.argv[1]
-    common_tests = load([BasicTest, SshTest, MysqlTest])
-    fast_tests = load([FastPrepareServerTest, ApacheSetupTest,
-                       PipSetupTest, NoPipSetupTest, CrontabTest])
+    common = [SshTest, MysqlTest, BasicTest]
+
     suites = {
-        'fast': TestSuite(common_tests + fast_tests),
-        'slow': TestSuite(load([DeployTest, CustomLayoutDeployTest])),
-        'prepare': TestSuite(common_tests + load([PrepareServerTest])),
+        'misc': TestSuite(load(common + [
+                    FastPrepareServerTest, ApacheSetupTest,
+                    PipSetupTest, NoPipSetupTest, CrontabTest
+                ])),
+        'deploy': TestSuite(load([
+                    DeployTest, CustomLayoutDeployTest
+                ])),
+        'prepare': TestSuite(load(common + [PrepareServerTest])),
     }
-    suites['all'] = TestSuite([suites['fast'], suites['slow']])
+    suites['all'] = TestSuite([suites['misc'], suites['deploy']])
 
     suite_name = sys.argv[2]
     if suite_name in suites: