123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> General >> View Article

Unit Testing Kentico Xperience 13 With Xunit

Profile Picture
By Author: raybiztech
Total Articles: 7
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

I don't write much and I do not definitely do blogs. But I do write code. And I write tests for code. So when .Net Core became a development model for Kentico Xperience 13, it became a perfect time to have start full unit tests on our code.

I also decided that I will create a series of articles on unit testing Kentico Xperience projects as most of the articles I have looked at covered mostly the basics not an in-depth look of how to fully cover a project with tests.

I reached out to Kentico and shared with them my plan to do the unit testing article series using the MedioClinic Sample Site . The sample project is featured in the Kentico Xperience Training modules. Fortunately, they concurred and here we are.

What to expect from this series? Well, I will be starting with simple unit tests, all the way to having at least 80% code coverage for the whole project. Of course, I will also share the tools used and full source code.

Let's start with the tools first.

Azure DevOps - Project management, source control and CI/CD:
Visual Studio 2022  - IDE
SonarCloud  - Static Code Analysis, ...
... Code Coverage
xUnit  - Testing framework/platform instead of NUnit used and supported by the Kentico Xperience Test Libraries.
AutoFac.AutoMock  - Auto mocking library to automatically create mock dependencies for both concrete and mock abstract instances in unit tests
AutoFixture  - for automatically creating test fixtures without hand-coding variables
Also listing below some of the articles specific to unit testing in Kentico
 
Kentico Documentation  - writing automated tests reference
Kentico 12: Design Patterns Part 1 - Writing Testable Code  - a great article and an awesome series of articles by Kentico MVP Sean Wright
Unit Testing Kentico EMS with xUnit  - another great article by Marnix van Valen. He also discussed why xUnit was used instead of NUnit.

Total Views: 118Word Count: 292See All articles From Author

Add Comment

General Articles

1. Top Podiatrist Bradenton Services | Expert Foot Doctor Care In Bradenton, Fl
Author: Top Podiatrist Bradenton Services | Expert Foot Do

2. Who Can Opt For Surrogacy In India?
Author: Surrogacy Centre India

3. Expert Tailoring & Alteration Services – B X Tailor & Alteration
Author: B X Tailor

4. Seo Company Dubai: How Bloom Agency Is Driving Digital Growth In The Uae
Author: Neetu Jaiswal

5. Shopify Development Company: Why Bloom Agency Is A Leading Choice For Your Ecommerce Growth
Author: Neetu Jaiswal

6. The Ultimate Guide To Ecommerce Agencies: What They Do, Why They Matter, And How To Choose The Right One
Author: Neetu Jaiswal

7. Bloom Digital Agency: Crafting Tailored Digital Marketing Solutions For Sustainable Growth
Author: neetu jaiswal

8. Krisala 41 Commune Wakad Pune: Where Smart Living Meets Future-ready Investment
Author: Armaan

9. Top-rated Pest Control & Deep Cleaning Services In Kolkata: Making Homes Healthier & Safer
Author: Techsquadteam

10. Silicone Molding Factory For High-quality Leak Proof Duckbill Valves
Author: yejiasilicone

11. Google Colab Python: A Beginner’s Guide To Coding In The Cloud
Author: Prakash Yadav

12. The Future Of Retail? Personalized Culture At Scale
Author: adlerconway

13. Double9books: A Leading Force In The World Of Book Publishing
Author: suraj patel

14. The Complete Guide To Discovering 2 Bhk Apartments In Lucknow
Author: Star Estate

15. Time Management Hacks For Entrepreneurs
Author: TrackHr App

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: