xunit test patterns refactoring test code phần 6 ppsx
... garbage-collected } Refactoring Notes These tests contain a fair amount of Test Code Duplication. We can remove this duplication by refactoring this Testcase Class to use Implicit Setup. There are two refactoring ... extends TestSetup { private FlightManagementTestHelper helper = new FlightManagementTestHelper(); public ParameterizedFlightManagementTestSetup( Test testSuit...
Ngày tải lên: 14/08/2014, 01:20
... depends with a test- specifi c equivalent.” Test Enumeration (399): The test automater manually writes the code that enumerates all tests that belong to the test suite. Test Helper (64 3): We defi ... hold any Test Utility Methods we want to reuse in several tests. Test Hook (709): We modify the SUT to behave differently during the test. Test Method (348): We encode each test...
Ngày tải lên: 14/08/2014, 01:20
... including Infrequently Run Tests or Untested Code. The latter problem may result from Missing Unit Tests or Lost Tests. By specifying that “enough tests” be run, we mean the test coverage should be ... published on test smells and refactoring test code. The four sen- sitivities were fi rst described in [ARTRP], which also described several ways to avoid Fragile Tests in Recorded T...
Ngày tải lên: 14/08/2014, 01:20
xunit test patterns refactoring test code phần 5 doc
... n LayernTestcaseClass testMethod_1 testMethod_2 Layer1TestcaseClass testMethod_1 testMethod_2 Layer 1 Test Double Test Double DOC Layer n LayernTestcaseClass testMethod_1 testMethod_2 Layer1TestcaseClass testMethod_1 testMethod_2 Layer ... n LayernTestcaseClass testMethod_1 testMethod_2 Layer1TestcaseClass testMethod_1 testMethod_2 Layer 1 Test Double Test Double Layer Test Layer...
Ngày tải lên: 14/08/2014, 01:20
xunit test patterns refactoring test code phần 7 potx
... Double Test Double Mock Object Test Spy Dummy Object Test Stub Fake Object Hard-Coded Test Double Configurable Test Double Test Double Mock Object Test Spy Dummy Object Test Stub Fake Object Hard-Coded Test Double Test Double Test Double Simpo ... Hard-Coded Test Double (page 568 ) for more information. Test Stub Test Stub Simpo PDF Merge and Split Unregistere...
Ngày tải lên: 14/08/2014, 01:20
xunit test patterns refactoring test code phần 8 docx
... Variation: Test Utility Test One major advantage of using Test Utility Methods is that otherwise Untestable Test Code (see Hard-to -Test Code on page 209) can now be tested with Self- Checking Tests. ... Utility Method_1 Test Utility Method_2 Testcase Class testMethod_1 testMethod_n Fixture SUT Test Helper Test Utility Method_1 Test Utility Method_2 Test Helper Test...
Ngày tải lên: 14/08/2014, 01:20
xunit test patterns refactoring test code phần 9 potx
... (page 67 8) or Dependency Lookup (page 68 6). In this situation, we use a Test Hook because we have no other way to address the Untested Code (see Production Bugs on page 268 ) caused by a Hard-Coded Dependency ... Exception()] .NET MSTest [TestClass] Not [Test [Test [Test [Class [Class [Expected applicable Method] Initialize] Cleanup] Initialize] Cleanup] Exception()] PHP PHPUnit...
Ngày tải lên: 14/08/2014, 01:20
xunit test patterns refactoring test code phần 10 docx
... Assertions, 366 Fuzzy Equality Assertions, 365 – 366 implementation, 363 as macros, 364 motivating example, 367 – 368 overview, 362 – 363 refactoring, 368 Single-Outcome Assertions, 366 – 367 Stated Outcome ... 430 implementation, 65 2 database patterns, 64 9 67 5 Database Sandbox, 65 0 65 3 Stored Procedure Test, 65 4 66 0 Table Truncation Teardown, 66 1 66 7 Transaction...
Ngày tải lên: 14/08/2014, 01:20