发布新日志

  • 读书笔记-xUnit.Test.Patterns.Refactoring.Test.Code

    2011-03-08 16:26:27

    Chapter 1  A Brief Tour

    1. If we fi  nd that we really cannot make the minimal test strategy work on our project by using these patterns, we can fall back to the alternative patterns listed in the full descriptions of these patterns and in the other narratives.

    翻译:如果我们确实遇到了使用这些模式但是不能使这些最小测试策略在我们的项目中起作用的情况,那么我们就需要返回到这些模式的完整描述和其他一些叙述的地方,那里列出了一些替换的模式。

    2. I have laid out this simple strategy in five parts:
    • Development Process: How the process we use to develop the code
    affects our tests.

    • Customer Tests: The fi  rst tests we should write as the ultimate defi  ni-
    tion of “what done looks like.”

    • Unit Tests: The tests that help our design emerge incrementally and
    ensure that all our code is tested.

    • Design for Testability: The patterns that make our design easier to test,
    thereby reducing the cost of test automation.

    • Test Organization: How we can organize our Test Methods (page 348)
    and Testcase Classes (page 373).

    我简单的罗列了在五个部分中的简单的测试策略:
    1. 开发过程:我们使用开发代码的流程是如何影响我们的测试

    2.客户测试:是我们应该写的作为“应该做出什么样子”的最终定义的第一个测试

    3. 单元测试:是能够帮助增量式的形成设计并且确保所有的代码都是被测试过的测试

    4. 可测性设计:使我们的设计更容易被测试从而降低了测试自动化的成本

    5. 测试组织方法:我们应该如何组织测试方法和测试类

     

Open Toolbar