Skip to main content

Home/ HealthcareMetadata/ Group items tagged unittesting

Rss Feed Group items tagged

Malcolm McRoberts

Databases integration testing strategies with Python | Julien Danjou - 0 views

  • import unittestimport osimport sqlalchemy import myapp class TestDB(unittest.TestCase): def setUp(self): url = os.getenv("DB_TEST_URL") if not url: self.skipTest("No database URL set") self.engine = sqlalchemy.create_engine(url)  def test_foobar(self): self.assertTrue(myapp.store_integer(self.engine, 42))
  • import unittestimport osimport sqlalchemy import myapp class TestDB(unittest.TestCase): def setUp(self): url = os.getenv("DB_TEST_URL") if not url: self.skipTest("No database URL set") self.engine = sqlalchemy.create_engine(url)  def test_foobar(self): self.assertTrue(myapp.store_integer(self.engine, 42))
  • import unittestimport osimport sqlalchemy import myapp class TestDB(unittest.TestCase): def setUp(self): url = os.getenv("DB_TEST_URL") if not url: self.skipTest("No database URL set") self.engine = sqlalchemy.create_engine(url)  def test_foobar(self): self.assertTrue(myapp.store_integer(self.engine, 42))
  • ...3 more annotations...
  • import unittestimport osimport sqlalchemy import myapp class TestDB(unittest.TestCase): def setUp(self): url = os.getenv("DB_TEST_URL") if not url: self.skipTest("No database URL set") self.engine = sqlalchemy.create_engine(url)  def test_foobar(self): self.assertTrue(myapp.store_integer(self.engine, 42))
  • import unittestimport osimport sqlalchemy import myapp class TestDB(unittest.TestCase): def setUp(self): url = os.getenv("DB_TEST_URL") if not url: self.skipTest("No database URL set") self.engine = sqlalchemy.create_engine(url)  def test_foobar(self): self.assertTrue(myapp.store_integer(self.engine, 42))
  • ("DB_TEST_URL") if not url: self.skipTest("No database URL set") self.engine = sqlalchemy.create_engine(url)  def test_foobar(self): self.assertTrue(myapp.store_integer(self.engine, 42))
Malcolm McRoberts

25.3. unittest - Unit testing framework - Python v2.7.7 documentation - 0 views

  • Class and module level fixtures are implemented in TestSuite
Malcolm McRoberts

selenium 2.42.1 : Python Package Index - 0 views

  • Selenium WebDriver is often used as a basis for testing web applications. Here is a simple example uisng Python's standard unittest library: import unittest class GoogleTestCase(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() self.addCleanup(self.browser.quit) def testPageTitle(self): self.browser.get('http://www.google.com') self.assertIn('Google', self.browser.title) if __name__ == '__main__': unittest.main(verbosity=2)
Malcolm McRoberts

Python-unittest-tutorial by cgoldberg - 0 views

  •  
    "assertIsNotNone"
Malcolm McRoberts

SQL Test - Unit Testing for SQL Server - 0 views

  • If you want to do test-driven development for databases, SQL Test is the place to start. It lets you write database unit tests in T-SQL and run them in SQL Server Management Studio.
Malcolm McRoberts

tSQLt - Database Unit Testing for SQL Server | Database Unit Testing for SQL Server - 0 views

  • What is tSQLt? tSQLt is a database unit testing framework for Microsoft SQL Server. tSQLt is compatible with SQL Server 2005 (service pack 2 required) and above on all editions.
Malcolm McRoberts

About DbUnit - 0 views

  • DbUnit is a JUnit extension (also usable with Ant) targeted at database-driven projects that, among other things, puts your database into a known state between test runs.
Malcolm McRoberts

The python-nose Open Source Project on Ohloh - 0 views

  • nose provides an alternate test discovery and running process for unittest,
Malcolm McRoberts

Running Automated Tests from the Command Line - 0 views

  • You can use the MSTest.exe program to run automated tests in a test assembly from a command line. You can also view the test results from these test runs, save the results to disk, and save your results to Team Foundation Server.You can also use tcm.exe to run test cases with associated automation from the command line using a test environment.
Malcolm McRoberts

Verifying Database Code by Using SQL Server Unit Tests - 0 views

  • Visual Studio Editions' Support for SQL Server Unit Tests The SQL Server unit tests feature, which was added in the December 2012 update of SQL Server Data Tools, allows you to create, modify, and run SQL Server unit tests in Visual Studio 2010 Professional and Visual Studio 2012 Professional and higher editions.
Malcolm McRoberts

tappy - TAP tools for Python - tappy 1.1 documentation - 0 views

  • tappy provides tools for working with the Test Anything Protocol (TAP) in Python. tappy generates TAP output for your unittest test cases. You can use the TAP output files with a tool like the Jenkins TAP plugin or any other TAP consumer
Malcolm McRoberts

QUnit - 0 views

  • QUnit is a powerful, easy-to-use JavaScript unit testing framework. It's used by the jQuery, jQuery UI and jQuery Mobile projects and is capable of testing any generic JavaScript code, including itself!
1 - 16 of 16
Showing 20 items per page