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 ## How HP set up secure and wise platform with Istio
John Zheng/ john.zheng@hp.com
IstioCon
HORIZON
## Agenda
HP Horizon platform design with Istio
➤ Secure Platform
Wise Platform
Excellent Observability 0 码力 |
23 页 |
1.18 MB
| 1 年前 3 ## 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 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 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
![Image](/uploads/documents/a/1/c/1/a1c regression testing
• How does regression testing work in practice
• How to build a regression testing system
• Going beyond finding behavioral regressions
• How to use regression testing effectively do matters
Low-dose Ultra Helical CT Angiogram of the Carotids and Circle of Willis for stroke work-up.
Clear visualization of contrast enhanced vessels and surrounding soft tissue enables fast and confident 0 码力 |
85 页 |
11.66 MB
| 1 年前 3 ## +23
## Single Producer Single Consumer Lock-free FIFO From the Ground Up
CHARLES FRASCH
Charlie Frasch
charles.frasch@gmail.com
Senior Core Developer - IEX Group
https://www.iex.io/
Code at: https://github = FifoTest/0.*
[ 原代码 ...] Running 6 tests from 1 test suite.
[ 原代码 ...] Global test environment set-up.
[ 原代码 ...] 6 tests from FifoTest/0, where TypeParam = Fifo1
[ RUN ] FifoTest/0.properties
[ OK = FifoTest/0.*
[ 原代码 ...] Running 6 tests from 1 test suite.
[ 代码 ...] Global test environment set-up.
[ 代码 ...] 6 tests from FifoTest/0, where TypeParam = Fifo1
[ 代码 ...] FifoTest/0.properties
[ 0 码力 |
51 页 |
546.30 KB
| 1 年前 3
|