Setting up CI and property testing for a Rust crate
Channel: Jon Gjengset
Date: 2023-03-10

In this video, we start with a Rust crate that has no CI and very little testing — https://github.com/jonhoo/cargo-index-transit — and we extend it to have both, starting from my own little collection of CI configuration: https://github.com/jonhoo/rust-ci-conf. We then move on to add property-based testing to the crate using https://altsysrq.github.io/proptest-book/intro.html, which significantly expands the testing for the crate in question.

0:00:00 Introduction
0:02:50 Getting rid of a path dependency
0:08:10 Structure of a GitHub CI config
0:10:30 Dependabot
0:12:35 Codecov config
0:13:10 Useful Rust CI jobs
0:24:36 -Zminimal-versions
0:29:49 More useful Rust CI jobs
0:31:23 Testing the CI with a PR
0:36:41 Fixing -Zminimal-versions
0:49:28 Other smaller CI/PR fixes
1:02:33 README badges
1:04:26 Property-based testing
2:19:26 Property testing in CI
2:28:44 Caching dependencies in CI

Live version with chat: https://youtube.com/live/fySHBD2BAC4