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 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.
• Acceptance • Iteratively / interactively.
• Pre-merge (aka Barrier Tests).
• Post-merge (aka Continuous Integration).
###### GIVEN ... WHEN ... THEN
Given a server with maximum accepted connections.
When a new 0 码力 |
50 页 |
2.04 MB
| 1 年前 3 ## +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
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 Integration
Version 5.3.36-SNAPSHOT
## Table of Contents
1. REST Endpoints ..... 2
1.1. RestTemplate ..... 2
1.1.1. Initialization ..... 3
URIs ..... 3
Headers ..... 4
1.1.2. Body ..... 4 Configuration ..... 23
2.7.2. Client-side Configuration ..... 24
3. Enterprise JavaBeans (EJB) Integration ..... 26
3.1. Accessing EJBs ..... 26
3.1.1. Concepts ..... 26
3.1.2. Accessing Local SLSBs -lookup>
This part of the reference documentation covers Spring Framework’s integration with a number of technologies.
### Chapter 1. REST Endpoints
The Spring Framework provides two 0 码力 |
141 页 |
2.13 MB
| 2 年前 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 ## +24
## High-Performance Numerical Integration in the Age of C++26
VINCENT REVERDY
## High-Performance Numerical Integration in the Age of C++26
Vincent Reverdy
Laboratoire d'Annecy de Physique value_type origin = std::getO(c.back());
c.reserve(std::abs((t_back - t_lim) / dt_backup)); // Integration loop
for (std::size.t i = 0; t_ok && a_ok; ++i) {
t_new = origin + i * t_sign Toward an improved version
## I ntegration function (4/4)
// Execution of backward and forward integration
std::thread backward(loop, std::ref(past), -one, t_backward);
std::thread forward(loop, std::ref(future) 0 码力 |
57 页 |
4.14 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
|