RUVIDEO
Поделитесь видео 🙏

Running Actix integration tests with Github Actions (Rust) [2020]

My take on writing unit and integration tests with Actix web and Rust + CI with Github actions!

Content:
0:07 Overview of the video
0:33 A word on unit tests
3:14 Create unit tests for errors module
5:12 Run unit tests with Github actions
6:38 A word on integration tests
7:56 Create integration tests
- 8:38 A bit of refactoring
- 9:25 Continue with integration tests
- 11:27 A more complex test. Avoid multiple connection pools?
- 12:49 Continue with integration tests
14:59 Run unit tests with Github actions
15:30 Use diesel CLI to run database migrations
17:24 Install diesel CLI and add Postgres Service to Github action
19:12 Bonus: Improve build time of the Github action
23:59 Bonus 2: Run integration tests only on demand (using feature flag)

Let me know if I made a mistake or if there is a better way of doing this. Thanks for watching!

In this video we are going to revisit the code from the Actix TODO Service series:
https://www.youtube.com/playlist?list=PLECOtlti4PspZHOySyzf9RApJFguZPFoF

Source code:
https://github.com/nemesiscodex/actix-todo

Not convinced? Here is another example of someone running integration tests with Actix with a different approach:
https://github.com/olxgroup-oss/dali

Actix repository:
https://github.com/actix/actix-web

Actix web page:
https://actix.rs/

Rust lang page:
https://www.rust-lang.org/

Code editor/IDE:
https://code.visualstudio.com/

Terminal: Alacritty
https://github.com/alacritty/alacritty

===================
PATREON
===================
? https://www.patreon.com/nemesiscodex ✅✅

Thank you to my first patron Juan Gutierrez!
================================================================

⚠ Protect your eyes! This is the best investment for a software developer.
Blue Light Blocking Glasses | Riot/Onyx by Gunnar
? https://amzn.to/37hkiNM


Recommended Book: Working Effectively with Legacy Code
? https://amzn.to/2TpwE0X
"Is your code easy to change? Can you get nearly instantaneous feedback when you do change it? Do you understand it? If the answer to any of these questions is no, you have legacy code"

#ActixWeb #RustLang #GenusV

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Running Actix integration tests with Github Actions (Rust) [2020]», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.