Skip to content

Ivan's Blog

Festina Lente

  • About
  • My Hobby

Month: August 2020

English Article · Software

Things to avoid and apply for better unit-test coverage

August 25, 2020August 25, 2020 smitbmxLeave a comment

Code implementation which potentially decrease code coverage in your code or makes it hard to test:

  • Static methods.
  • Static classes (including Singleton).
  • Constructors with the new keyword.
  • Extension methods.

Approaches which help to test your code better:

  • Interface usage.
  • Dependency Injection.
  • Inversion of Control.
  • Fabric design pattern.

Recent Posts

  • Set Up Cursor for an Existing Repository in 5 Minutes
  • Sitecore Stream for PDXP – Page Translation, Roles and more improvements in v.1.5.89
  • Prompt Engineering
  • Sitecore Stream for PDXP – Media Metadata Extraction
  • Sitecore .webp images support

Archives

  • December 2025 (2)
  • October 2025 (1)
  • August 2025 (2)
  • July 2025 (1)
  • June 2025 (1)
  • April 2025 (1)
  • March 2025 (1)
  • February 2025 (1)
  • October 2024 (1)
  • April 2024 (1)
  • December 2023 (1)
  • April 2023 (1)
  • December 2022 (1)
  • January 2022 (1)
  • December 2021 (2)
  • November 2021 (5)
  • October 2021 (2)
  • September 2021 (1)
  • August 2021 (2)
  • July 2021 (9)
  • June 2021 (10)
  • May 2021 (7)
  • April 2021 (4)
  • March 2021 (1)
  • February 2021 (1)
  • January 2021 (1)
  • December 2020 (1)
  • November 2020 (2)
  • October 2020 (1)
  • September 2020 (2)
  • August 2020 (1)
  • July 2020 (2)
  • June 2020 (1)
  • March 2019 (1)
  • October 2018 (1)
  • September 2018 (1)
  • July 2018 (1)
  • June 2018 (2)
  • May 2018 (2)
  • April 2018 (3)
  • June 2017 (1)
  • April 2015 (2)

Categories

  • 2018 Travel
  • 2019 Travel
  • ai
  • Architecture
  • Countries
  • English Article
  • Extreme Actions
  • General
  • Malaysia
  • Philippines
  • Russian Article
  • Software
  • Sport
  • Study
  • Timelapse
  • Travel
  • Ukraine
  • Uncategorized
  • Video

Meta

  • Create account
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com
Blog at WordPress.com.
  • Subscribe Subscribed
    • Ivan's Blog
    • Join 37 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Ivan's Blog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar