xunit test patterns refactoring test code phần 1 pps

xunit test patterns refactoring test code phần 1 pps

xunit test patterns refactoring test code phần 1 pps

... 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 as a single Test ... . . . . . . . 11 7 Parameterized and Data-Driven Tests . . . . . . . . . . . . . . . . . . . 11 8 Avoiding Conditional Test Logic . . . . . . . . . . . . . . . . . . . . . . . . ....

Ngày tải lên: 14/08/2014, 01:20

95 260 0
xunit test patterns refactoring test code phần 4 pps

xunit test patterns refactoring test code phần 4 pps

... 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

95 244 0
xunit test patterns refactoring test code phần 5 doc

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 Laye...

Ngày tải lên: 14/08/2014, 01:20

95 228 0
xunit test patterns refactoring test code phần 6 ppsx

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

95 203 0
xunit test patterns refactoring test code phần 7 potx

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 ... separate Test Double Class (see Hard-Coded Test Double). Each of these options is discussed in more detail in Hard-Co...

Ngày tải lên: 14/08/2014, 01:20

95 298 0
xunit test patterns refactoring test code phần 8 docx

xunit test patterns refactoring test code phần 8 docx

... Class testMethod_B _1 testMethod_B_2 testMethod_A _1 testMethod_A_2 feature _1 feature_2 Exercise Exercise Creation Creation TestcaseClass Fixture B Fixture A SUT Class testMethod_B _1 testMethod_B_2 testMethod_A _1 testMethod_A_2 feature _1 feature_2 Exercise Exercise Creation Creation Testcase Class per Class Testcase ... Variation: Test Utility Test One major advantage of usin...

Ngày tải lên: 14/08/2014, 01:20

95 237 0
xunit test patterns refactoring test code phần 9 potx

xunit test patterns refactoring test code phần 9 potx

... Exception()] .NET NUnit 2 .1+ [TestFixture] [Suite] [Test] [SetUp] [TearDown] [Test [TestFixture [Expected Fixture TearDown] Exception()] SetUp] .NET MbUnit 2.0 [TestFixture] [Suite] [Test] [SetUp] [TearDown] ... Term Language xUnit Testcase Test Suite Test Fixture Fixture Suite Suite Expected Member Class Factory Method setup teardown Fixture Fixture Exception Setup Teardown Test...

Ngày tải lên: 14/08/2014, 01:20

95 338 0
xunit test patterns refactoring test code phần 10 docx

xunit test patterns refactoring test code phần 10 docx

... Logic defi ned, 10 11 , 789 Hard-To -Test Code. See Hard-To -Test Code obscure tests. See Obscure Test Test Code Duplication. See Test Code Duplication Test Logic in Production. See Test Logic in ... 226–227 reducing Test Code Duplication, 11 4 11 9 refactoring, xlvi–xlix Self-Checking Tests, 10 7 10 8 unit testing, 6 Verify One Condition per Test, 46–47 assumptions...

Ngày tải lên: 14/08/2014, 01:20

93 257 0
w