Artwork

Content provided by DotNet & More. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by DotNet & More or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

DotNet&More #115: Рефакторим тесты, тестовые фреймворки и не только

1:07:30
 
Share
 

Manage episode 413518909 series 2478165
Content provided by DotNet & More. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by DotNet & More or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.
Присоединяйтесь к брейншторму "как улучшить тесты", добавляйте свой Pull Request в https://github.com/dotnetmore/shit-tests

Тесты должны быть понятные, говорили они. Тесты должны быть короткие, учили они. Но что делать, если только arrange занимает 20 строк? А если act - больше чем просто вызов метода? А если логика кода достаточно сложная, так что в однострочный assert не влезает?

Спасибо всем кто нас слушает. Ждем Ваши комментарии.

Бесплатный открытый курс "Rust для DotNet разработчиков": https://www.youtube.com/playlist?list=PLbxr_aGL4q3S2iE00WFPNTzKAARURZW1Z

Shownotes:

00:00:00 Вступление

00:02:30 DRY в тестах

00:13:15 Как рефакторить и код, и тесты одновременно

00:20:30 А что если делать маленькие классы и маленькие тесты?

Ссылки:

- https://github.com/dotnetmore/shit-tests : Тесты, которые мы разбирали в выпуске

- https://fluentassertions.com/introduction : Fluent Assertions

- https://nsubstitute.github.io/ : NSubstitute

- https://www.testrail.com/blog/5-bdd-tools-c-codebases/ : Обзор BDD фреймворков

- https://github.com/VerifyTests/Verify/ : Verify для сложного assert

- https://github.com/VerifyTests/Verify.Serilog : Verify для логов 0_o

Видео: https://youtube.com/live/dPH6W7yMJPw

Слушайте все выпуски: https://dotnetmore.mave.digital

YouTube: https://www.youtube.com/playlist?list=PLbxr_aGL4q3R6kfpa7Q8biS11T56cNMf5

Обсуждайте:

- Telegram: https://t.me/dotnetmore_chat

Следите за новостями:

– Twitter: https://twitter.com/dotnetmore

– Telegram channel: https://t.me/dotnetmore

Copyright: https://creativecommons.org/licenses/by-sa/4.0/

  continue reading

119 episodes

Artwork
iconShare
 
Manage episode 413518909 series 2478165
Content provided by DotNet & More. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by DotNet & More or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.
Присоединяйтесь к брейншторму "как улучшить тесты", добавляйте свой Pull Request в https://github.com/dotnetmore/shit-tests

Тесты должны быть понятные, говорили они. Тесты должны быть короткие, учили они. Но что делать, если только arrange занимает 20 строк? А если act - больше чем просто вызов метода? А если логика кода достаточно сложная, так что в однострочный assert не влезает?

Спасибо всем кто нас слушает. Ждем Ваши комментарии.

Бесплатный открытый курс "Rust для DotNet разработчиков": https://www.youtube.com/playlist?list=PLbxr_aGL4q3S2iE00WFPNTzKAARURZW1Z

Shownotes:

00:00:00 Вступление

00:02:30 DRY в тестах

00:13:15 Как рефакторить и код, и тесты одновременно

00:20:30 А что если делать маленькие классы и маленькие тесты?

Ссылки:

- https://github.com/dotnetmore/shit-tests : Тесты, которые мы разбирали в выпуске

- https://fluentassertions.com/introduction : Fluent Assertions

- https://nsubstitute.github.io/ : NSubstitute

- https://www.testrail.com/blog/5-bdd-tools-c-codebases/ : Обзор BDD фреймворков

- https://github.com/VerifyTests/Verify/ : Verify для сложного assert

- https://github.com/VerifyTests/Verify.Serilog : Verify для логов 0_o

Видео: https://youtube.com/live/dPH6W7yMJPw

Слушайте все выпуски: https://dotnetmore.mave.digital

YouTube: https://www.youtube.com/playlist?list=PLbxr_aGL4q3R6kfpa7Q8biS11T56cNMf5

Обсуждайте:

- Telegram: https://t.me/dotnetmore_chat

Следите за новостями:

– Twitter: https://twitter.com/dotnetmore

– Telegram channel: https://t.me/dotnetmore

Copyright: https://creativecommons.org/licenses/by-sa/4.0/

  continue reading

119 episodes

All episodes

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Quick Reference Guide