Testing / Unit Testing #22
Replies: 4 comments
-
Something else I've been wanting to look into (but haven't found time yet) is bUnit. I've been hearing good things! |
Beta Was this translation helpful? Give feedback.
-
Yes, I have heard good things about bUnit too! ( and I was a bit surprised to see that LightBDD does not seem to support it yet... maybe it is just that there "readme" is out of date...) |
Beta Was this translation helpful? Give feedback.
-
Just seen this too (may or may not have any relevance for this project but I can think of times it might have been useful) https://adamstorr.azurewebsites.net/blog/beginning-to-make-testing-with-httpclient-easier |
Beta Was this translation helpful? Give feedback.
-
Thanks for adding this issue as it's definitely something we need to implement. Would LightBDD and bUnit not handle two different testing scenarios? I can see using LightBDD for a traditional unit case scenario where I have a CalculateDeliveryCost function which accepts a post code as a parameter and I want to test that the expected delivery cost is being returned for a selection of post codes. In bUnit I would be more testing that if the user clicks on the search button with "Apple" in the search text box then verify that the div with an ID of SearchResults is displaying the search results table consisting of specified html. In some ways with bUnit we're testing both the back end and front end. Back end in terms of the search function returning expected results and the front end in terms of the results being displayed in a specified format. |
Beta Was this translation helpful? Give feedback.
-
I like this idea...
https://jonhilton.net/better-csharp-tests-lightbdd/
Beta Was this translation helpful? Give feedback.
All reactions