testing pyramid System Tests Integration Tests Unit Tests
## What is a Unit Test?
## What is a Unit Test 0 码力 |
79 页 |
25.86 MB
| 1 年前 3 ## 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") 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
bool IsEmpty();
bool Fill(); 0 码力 |
45 页 |
1.91 MB
| 1 年前 3 ## +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
#include
TEST(TestMyApi, Halving) {
EXPECT_FLOAT_EQ(21.0F, get_half_of(42 0 码力 |
50 页 |
1.37 MB
| 1 年前 3 ## +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 4/p5_1.jpg)
BUT WHEN I DO,
DO IT IN
PRODUCTION
Software development done right is basically testing and debugging.
## GOOD TESTS ARE
• Independent
• Repeatable
Fast
## DIFFERENT TESTS — ALL ARE generally shallow / easy-to-fix.
Tests run fast – tight feedback loop.
But...
Assumptions!
## UNIT TESTING FRAMEWORKS
Google Gest
Catch2
Boost.Test
• CppUTest
• doctest

Testing Compile-time Constructs in a Runtime Unit Testing ...
YouTube · CppCon Feb 15, 2022
It's A Bug Hu
Armor Plate You
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 Hogg (Wednesday) 0 码力 |
109 页 |
4.13 MB
| 1 年前 3 ## Performance of Apache Ozone on NVMe
Wei-Chiu Chuang (jojochuang)
Ritesh Shukla (kerneltime)
## Agenda
• Overview of how Ozone and how it scales
• Why NVME is important for Ozone for scaling
• Benefits Benefits of using NVME
• Impala performance results from NVME clusters
• Write path improvements results from NVME clusters
• Summary
• Questions
## Ozone Architecture

How noexcept interacts with unit testing of CCAs.
We will go over everything twice!
## About the presenters In Absentia
## Pablo Halpern 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've 0 码力 |
90 页 |
1.38 MB
| 1 年前 3 ## +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
|