Replies: 1 comment 11 replies
-
Thanks @domn1995, appreciate the positive feedback.
E.g. you could probably create an extension to As for the static analyzers not recognizing |
Beta Was this translation helpful? Give feedback.
-
Thanks @domn1995, appreciate the positive feedback.
E.g. you could probably create an extension to As for the static analyzers not recognizing |
Beta Was this translation helpful? Give feedback.
-
First of all, I love this library! We've been comparing this with some React testing libraries (jest, react-testing-library, Enzyme, etc.) and it's amazing how much easier it is to test with bUnit.
One use case I found myself desiring is using the
MarkupMatches()
method due to the HTML semantics but not wanting to throw. Usually this happens when I'm building additional helper methods to help me traverse my component hierarchy. I find myself wanting to useMarkupMatches()
in order to conditionally return one or more components or not.Another issue but not as big of a deal with
MarkupMatches()
returningvoid
is some static analyzers do not detect it as an assertion and warn that our tests are missing an assertion.We are also prevented from combining bUnit with other assertion libraries. For example, we use FluentAssertions throughout our codebase and would sometimes like to use it like this:
cut.MarkupMatches("...").Should().BeFalse()
andcut.MarkupMatches("...").Should().BeTrue()
.Again, awesome library! Keep up the amazing work :)
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions