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://ro.player.fm/legal.
Player FM - Aplicație Podcast
Treceți offline cu aplicația Player FM !

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

1:07:30
 
Distribuie
 

Manage episode 413515295 series 2510700
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://ro.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

145 episoade

Artwork
iconDistribuie
 
Manage episode 413515295 series 2510700
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://ro.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

145 episoade

Toate episoadele

×
 
Loading …

Bun venit la Player FM!

Player FM scanează web-ul pentru podcast-uri de înaltă calitate pentru a vă putea bucura acum. Este cea mai bună aplicație pentru podcast și funcționează pe Android, iPhone și pe web. Înscrieți-vă pentru a sincroniza abonamentele pe toate dispozitivele.

 

Ghid rapid de referință