Scientific Unit Testing## Scientific Unit Testing Dave Steffen, Ph.D. Software Lead dsteffen@scitec.com — in Physics which is relevant SCiTEC Science & Technology Innovation www.scitec.com If I have seen further bad tests are almost always better than no tests! ## Unit Testing OO Code ## Test using only the public interface ("Black Box" testing) • Forces better design ("design for testability") testability") • Avoids tight coupling to implementation • Unit tests are also examples and documentation ## Object Oriented testing ## Let's unit test this class 1 // Cup.h // creates an empty cup bool0 码力 | 45 页 | 1.91 MB | 1 年前3
Back to Basics Unit Testing## +24 ## Back To Basics Unit Testing ## DAVE STEFFEN ## 20 24 September 15 - 20 ## Unit Testing is a Big Topic How many youtube videos about C++ unit testing ## ✗ 🔍 🔍 ✗  Testing Compile-time Constructs in a Runtime Unit Testing ... YouTube · CppCon Feb 15, 2022 It's A Bug Hu Armor Plate You "It's A Bug Hunt" - Armor Plate Your Unit Tests in 23, 2023 ## Unit Testing is a Big Topic • Jody Hagins (today): The Most Important Design Guideline is Testability • Greg Law and Mike Shah (tomorrow): Back To Basics, Debugging and Testing • Chip Hogg0 码力 | 109 页 | 4.13 MB | 1 年前3
Testing Compile-time Constructs Within a Runtime Unit Testing Framework## +21 ## Testing Compile-time Constructs Within a Runtime Unit Testing Framework ## I GOR BOGOSLAVSKYI 20 21 October 24-29 ## We use C++ (14) for safety-critical applications that we deliver to our ments/4/8/e/9/48e97f15addfced313a9cb60758e45d2/p2_1.jpg) Errors have a high cost, so rigorous testing is a must We use increasingly more compile-time polymorphism and checks Question: how to test if get_half_of(T smth) { return smth / T{2}; } ## Write a rigorous testing suite #includeTEST(TestMyApi, Halving) { EXPECT_FLOAT_EQ(21.0F, get_half_of(42 0 码力 | 50 页 | 1.37 MB | 1 年前3
Mix Assertion, Logging, Unit Testing and Fuzzing with ZeroErr## Mix Assertion, Logging, Unit Testing and Fuzzing with ZeroErr Build Safer Modern C++ Application Speaker: Xiaofan Sun Date: Sep 19, 2024 ## Self-Introduction • Got my Ph.D. from UC, Riverside last last year • Automatic testing of multithreading programs • Symbolic execution improvements • Fault detection in concurrent data structures • Now working in NVIDIA HWInf Team • Job: Infrastructure toolchains user code / unit testing also needs pretty printing, e.g.: $$ \text{ASSERT}(a != 0, "a should not be 0. Input is: } $$ ", input); ## Do I catch the bug? Yes, and it’s inside a unit test case0 码力 | 54 页 | 961.46 KB | 1 年前3
Back to Basics Testing## +23 ## Back To Basics Testing ## PHIL NASH ## 20 23 October 01 - 06 ## What is a test? ## What is a test? ## operation ## What is a test? ## operation input values ## What is a test? ## operation colspan="3">Fault injectionPenetration Compatibility Unit Operational Load Stress Concurrency Unit Integration ## What is a test? ## System Tests Integration Tests Unit Tests What is a test? ## The testing pyramid System Tests Integration Tests Unit Tests ## What is a Unit Test? ## 0 码力 | 79 页 | 25.86 MB | 1 年前3
Back To Basics Debugging and Testing## +24 ## Back To Basics Debugging and Testing ## GREG LAW & MIKE SHAH ### Writing software is really hard. If it’s not tested, it doesn’t work Or at least it will soon stop working. ## WHAT'S Software development done right is basically testing and debugging. ## GOOD TESTS ARE • Independent • Repeatable Fast ## DIFFERENT TESTS — ALL ARE NEEDED Unit tests. • Integration tests. System tests accepted connections. When a new connection attempt is made. Then error code ETOOMANY is returned. ## UNIT TESTS Test a module in isolation. 'Mock' interfaces to other modules / system. Bugs are0 码力 | 50 页 | 2.04 MB | 1 年前3
Noexcept: Enabling Testing of Contract Checks## 20 23 October 01 - 06 ## +23 ## Noexcept? Enabling Testing of Contract Checks ## PABLO HALPERN & TIMUR DOUMLER ## Welcome What can the Screen Actors Guild and the Writers Guild of America tell writing contracts and checking them at run time How to unit test contract-checking annotations (CCAs) How noexcept interacts with unit testing of CCAs. We will go over everything twice! ## About the ## Unit Testing, CCAs and Exception Specifications CCAs can themselves use the source of bugs and should verify as part of unit testing. • Overuse of noexcept can interfere with such unit testing We've0 码力 | 90 页 | 1.38 MB | 1 年前3
Continuous Regression Testing for Safer and Faster Refactoring## +23 ## Continuous Regression Testing for Safer and Faster Refactoring PEJMAN GHORBANZADE ## Continuous Regression Testing for Safer and Faster Refactoring  Testing as risk mitigation 0 码力 | 85 页 | 11.66 MB | 1 年前3
Spring Framwork Testing v5.3.36 SNAPSHOTTesting Version 5.3.36-SNAPSHOT ## Table of Contents 1. Introduction to Spring Testing 2 2. Unit Testing 3 2.1. Mock Objects 3 2.1.1. Environment 3 2.1.2. JNDI 3 2.1.3. Servlet API 4 2.1 2.2. Unit Testing Support Classes 4 2.2.1. General Testing Utilities 4 2.2.2. Spring MVC Testing Utilities 5 3. Integration Testing 6 3.1. Overview 6 3.2. Goals of Integration Testing 6 3 Transaction Management 8 3.2.4. Support Classes for Integration Testing 8 3.3. JDBC Testing Support 8 3.4. Annotations 9 3.4.1. Spring Testing Annotations 9 @BootstrapWith 10 @ContextConfiguration0 码力 | 193 页 | 2.53 MB | 2 年前3
Julia 1.9.2 Documentation1061 III Standard Library 1062 60 ArgTools 1063 60.1 Argument Handling 1063 60.2 Function Testing 1064 61 Artifacts 1067 62 Base64 1069 63 CRC32c 1072 64 Dates 1073 64.1 Constructors 1073 ..... 1326 78.1 Log event structure ..... 1327 78.2 Processing log events ..... 1328 78.3 Testing log events ..... 1329 78.4 Environment variables ..... 1329 78.5 Examples ..... 1330 78.6 Reference 97 Tar ..... 1455 98 Unit Testing ..... 1460 98.1 Testing Base Julia ..... 1460 98.2 Basic Unit Tests ..... 1460 98.3 Working with Test Sets ..... 1463 98.4 Testing Log Statements ..... 14670 码力 | 1644 页 | 5.27 MB | 2 年前3共 1000 条- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词单元测试科学方法测试覆盖率测试隔离测试设计unit testingfunctiontest frameworkcode baseassert运行时单元测试框架编译时构造静态测试GoogleTest库C++14ZeroErr模糊测试断言日志记录测试测试类型动态测试挑战DebuggingTestingUnit testsIntegration testsHeisenbugscontract checksnoexceptexceptionstestingannotations持续回归测试重构测试文化测试效率Spring TestContext FrameworkIntegration TestingUnit TestingTransaction ManagementJDBC Testing SupportDocumentationREPLCrashesReflection













