The DevOps HandbookEnvironment scripts & creation tools 3. DB scripts and reference data 4. Containers 5. Automated tests 6. Project artifacts – documentation, procedures, etc. 7. Application configuration files 8. This struggling with changes – Hard line: no changes would be accepted into GWS without accompanying automated tests. Spread Testing Grouplet team approach. Google – single, share repository of billions of files. 50% of code is changed each month. 40K code commits/day, 120K automated test suites, 75M tests cases/day e. CONTINUOUSLY BUILD, TEST, AND INTEGRATE OUR CODE AND ENVIRONMENTS i. Create automated test0 码力 | 8 页 | 23.08 KB | 5 月前3
Rust 程序设计语言 简体中文版 1.85.0std::collections 中定义的所有公有项引入当前作用域。使用 glob 运算符时 请多加小心!Glob 会使得我们难以推导作用域中有什么名称和它们是在何处定义的。 glob 运算符经常用于测试模块 tests 中,这时会将所有内容引入作用域;我们将在第十一 章“如何编写测试”部分讲解。glob 运算符有时也用于 prelude 模式;查看标准库中的文档了解 这个模式的更多细节。 149/562Rust 文件名:src/lib.rs pub fn add(left: u64, right: u64) -> u64 { left + right } #[cfg(test)] mod tests { use super::*; #[test] fn it_works() { let result = add(2, 2); assert_eq 220/562Rust 程序设计语言 简体中文版 现在让我们只关注 it_works 函数本身。注意 fn 行之前的 #[test]:这个属性表明这是一个测 试函数,这样测试执行者就知道将其作为测试处理。tests 模块中也可以有非测试的函数来帮 助我们建立通用场景或进行常见操作,必须每次都标明哪些函数是测试。 示例函数体通过使用 assert_eq! 宏来断言 result(其中包含 2 加 2 的结果)等于0 码力 | 562 页 | 3.23 MB | 24 天前3
The DevOps Handbookevery Google property d. SPREAD KNOWLEDGE BY USING AUTOMATED TESTS AS DOCUMENTATION AND COMMUNITIES OF PRACTICE i. Ensure automated tests demonstrate use and behavior of libraries and components ii Designing for fast flow, deployability, and operations will derive NFRs. Codify these into the tests and pipeline f. BUILD REUSABLE OPERATIONS USER STORIES INTO DEVELOPMENT i. Goal – make recurring issues unaddressed due to schedule and budget constraints ii. Automate as many security controls and tests as possible and incorporate into the pipeline iii. Enable fast feedback on potentially insecure0 码力 | 9 页 | 25.13 KB | 5 月前3
julia 1.10.10Julia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1500 98.2 Basic Unit Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1500 98.3 Working with Test Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1510 98.6 Broken Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1512 98.7 Test result numbers for special values, which can be useful in situations like hash key comparisons: Function Tests if isequal(x, y) x and y are identical isfinite(x) x is a finite number isinf(x) x is infinite0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9Julia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1500 98.2 Basic Unit Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1500 98.3 Working with Test Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1510 98.6 Broken Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1512 98.7 Test result numbers for special values, which can be useful in situations like hash key comparisons: Function Tests if isequal(x, y) x and y are identical isfinite(x) x is a finite number isinf(x) x is infinite0 码力 | 1692 页 | 6.34 MB | 3 月前3
Tornado 6.5 DocumentationClears the IOLoop for the current thread. Intended primarily for use by test frameworks in between tests. Changed in version 5.0: This method also clears the current asyncio event loop. Deprecated since be cleaned up when the process exits. IOLoop.close is provided mainly for scenarios such as unit tests, which create and destroy a large number of IOLoops. An IOLoop must be completely stopped before restart the process. Intended to be used at the end of scripts like unit test runners, to run the tests again after any source file changes (but see also the command-line interface in main) tornado.autoreload0 码力 | 272 页 | 1.12 MB | 3 月前3
Julia 1.11.4Julia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1774 102.2 Basic Unit Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1774 102.3 Working with Test Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1784 102.6 Broken Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1787 102.7 Test result NaNs equal to each other:CHAPTER 6. MATHEMATICAL OPERATIONS AND ELEMENTARY FUNCTIONS 36 Function Tests if isequal(x, y) x and y are identical isfinite(x) x is a finite number isinf(x) x is infinite0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 DocumentationJulia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1774 102.2 Basic Unit Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1774 102.3 Working with Test Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1784 102.6 Broken Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1787 102.7 Test result NaNs equal to each other:CHAPTER 6. MATHEMATICAL OPERATIONS AND ELEMENTARY FUNCTIONS 36 Function Tests if isequal(x, y) x and y are identical isfinite(x) x is a finite number isinf(x) x is infinite0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release NotesJulia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1774 102.2 Basic Unit Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1774 102.3 Working with Test Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1784 102.6 Broken Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1787 102.7 Test result NaNs equal to each other:CHAPTER 6. MATHEMATICAL OPERATIONS AND ELEMENTARY FUNCTIONS 36 Function Tests if isequal(x, y) x and y are identical isfinite(x) x is a finite number isinf(x) x is infinite0 码力 | 2007 页 | 6.73 MB | 3 月前3
julia 1.13.0 DEVJulia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1825 103.2 Basic Unit Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1825 103.3 Working with Test Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1836 103.6 Broken Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1838 103.7 Test result numbers for special values, which can be useful in situations like hash key comparisons: Function Tests if isequal(x, y) x and y are identical isfinite(x) x is a finite number isinf(x) x is infinite0 码力 | 2058 页 | 7.45 MB | 3 月前3
共 21 条
- 1
- 2
- 3













