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
Unit Testing v8 #1627
Comments
Disucssion on our: https://our.umbraco.com/forum/umbraco-8/96366-unit-testing-v8#comment-305101 |
Hey @Adolfi I agree this would be a great thing to have documented, I can see you already posted some examples on the forum thread - would you be up for contributing to the documentation by writing this article? We can of course help with the correct placement, file setup and a review by one of the Umbraco Core developers 🙂 This would speed up the documenting process quite a bit. |
Hi @jmayntzhusen. If you could have a core memeber verify my post in the our forum thread and confirm that my implementation would be concidered a "best practice", then I would be happy to write the docs or at least get it started. Cheeers |
Awesome, I asked @bergmania to have a look at the forum post, and he confirms that what you posted is correct and the basic way to do it 👍🙂 Do you need anything else to get started? |
Wow, that was fast. Thanks, and great to hear that it was an acceptet approach. One question: Do you think it should be a "Documentation" and live under the "Implementation" area or should it be constructed as a "Tutorial" instead? Like "Getting started with Unit Testing"? |
I think either would be fine, normally tutorials are a bit more in depth and should also explain the concept to those who don't know anything about the subject though, so they require a bit more explanations and steps. It depends what you wish to do, if you would like to just put the code examples out there then I would say it should be in the Implementation section 🙂 |
Awesome, thanks. Sounds like docs then and not a tutorial. :) Cheers! |
Better late than never. :) #1711 |
Will close this for now, thanks again! 🎉 |
Thank you!!! ❤️ |
What type of issue is it?
Missing documentation
What article/section is this about?
Unit Testing
Describe the issue:
It would be great if there where a section in the documentation on how to get started with unit testing in Umbraco. For instance how to unit test:
There are great blog posts on this topic scattered around the internet, but it would be great if there where an official "recommended" approach on how to get started.
I think Unit Testing should should be easy to get started with and with as little mocking as possible, and for someone new to Umbraco i dont think one should have to fork the UmbracoCms and examine how the tests have been written there, but instead there should be easy to find docs available to get started. Maybe some basic examples of how to test the examples mentioned on custom-controllers section?: https://our.umbraco.com/documentation/reference/routing/custom-controllers
Take care!
The text was updated successfully, but these errors were encountered: