Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for IView Unit Testing #353

Open
Evelios opened this issue Oct 12, 2023 · 1 comment
Open

Support for IView Unit Testing #353

Evelios opened this issue Oct 12, 2023 · 1 comment

Comments

@Evelios
Copy link

Evelios commented Oct 12, 2023

I'm looking to be able to test some of my view creation modules and I'm looking to figure out the best way to go about that. There was issue #159 but all the links there are dead. I have not been able to find a way to accurately test all internal properties of the View components.

I was looking through current support you have for VirtualDom diffing through the VirtualDom.Differ.diff function. This functionality is understandable internal to the module. With access to information like that diff dela would give me the ability to write test wrappers for views that provides accurate view information.

That being said, I don't know if that is the right direction to go. I would like to be able to have the security knowing that the data flows and the view creation functions are working as expected.

@JaggerJo
Copy link
Member

Happy to help with this. I guess you use the component model?

If so I'd start by modifying the Component class so that it allows you to inspect its internal state.

Later we can merge it..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants