How to test user controls

Good day everyone, I've recently started working on a decently big project at work which uses a lot of user controls. Currently, if anyone wants to test the controls, they usually add it to one of our default applications, which is quite the pain since it takes up to 2 minutes to start, has a annoying log in screen and is pretty slow on our development laptops. Coming from my own UI implementations in C++/OpenGL or IMGUI, I've always had a way to launch a window with only a single ui component for testing, saving a screenshot of every distinct frame, manual testing with pass/fail buttons. But I couldn't find anything in regards to testing user controls in isolation in c#/wpf. I had the idea to do it similar to my manual pass/fail approach and just create a window and set the content to the user control, but I was wondering if there are any better ways or if I am simply bad at searching... tldr: how do I test user controls in isolation
1 Reply
Sossenbinder
Sossenbinder5mo ago
Not too familiar with desktop gui apps, but your idea doesn't sound all that bad - There's something like https://storybook.js.org/ for the JS world which is basically just a big demo application, highlighting all the potential permutations of single components and their properties
Storybook
Storybook: Frontend workshop for UI development
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. It's open source and free.
Want results from more Discord servers?
Add your server