Comments (5)
I'm closing this as I've done a larger rewrite and all the new code is tested.
from umbraco-graphql.
Yes, I think it would be a good time to look into it. It's been on my todo list for a while now, but I've only got as far as creating the test project (which I've just committed and pushed).
from umbraco-graphql.
from umbraco-graphql.
All the help we can get on this is much appreciated :-)
I've made some changes in the umbraco8 branch were a lot of the stuff has interfaces now (to make it work nicely with the DI), this should make it easier to do unit tests i think.
from umbraco-graphql.
Without knowing much about the project nor graphql there's not much I can give. ;)
But a general advice is to stub as close to IO as possible to test as many participants as possible at once. If this is using the content cache, I'd go with the xml overriding technique with Umbraco's own tests:
https://github.com/lars-erik/umbraco-unit-testing-samples/blob/master/Umb.Testing.Tests/SampleUmbracoTests/ContentCache_From_Xml.cs
If you're exposing a WebApi endpoint you can actually test that through HTTP hosting your endpoint from your test process. Here's an example of doing it for OData.
https://intellitect.com/self-hosted-integration-testing-of-odata-and-webapi/
(found from serp)
Other than that, read TDD books and just get started. :) Can't swim if you don't jump in.
from umbraco-graphql.
Related Issues (20)
- Custom fields not outputted in umbraco8 branch HOT 2
- Make umbraco8 the master branch HOT 1
- graphql endpoints HOT 1
- What's the syntax for filtering queries? HOT 2
- Umbraco 8 support? HOT 1
- Call for maintainers HOT 4
- Performance tests and benchmarks
- Security investigation
- Build pipeline and automated release
- Multi-lingual content and variants HOT 1
- Remove ToDos from README.md and move them into issues (if they still apply) HOT 3
- Support Dictionary Items
- Investigate similar solutions in other (open source) CMS
- Create Developer Documentation
- Support for Unicore HOT 3
- Revisit filtering
- Cannot access Rich Text field with Macro via GraphQL HOT 2
- Future of this project? HOT 4
- Exception when running with Umbraco 9.1.2 HOT 1
- V13 LTS update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from umbraco-graphql.