Replies: 1 comment 3 replies
-
Hi you didn't say where to share so I do it here. CompanyI dont want my github account to be connected to the company I am working for. So I dont want to tell which company I am working for. But we are maintaining a Vue app backed by NestJs with graphql and prisma. The app is used for planning and managing routes for various services, such as garbage collection, parcel delivery, winter services, and similar areas where it is important to plan and optimize routes and assign drivers. Some backend stats
How we are using Suites
Benefits or improvements
Challenges and features we would like to seeChallenge Auto-MockingA great feature would be auto-exposing for sociable tests. Something like We came to this because of this:As great as auto mocking might be, for sociable tests its becoming quite tedious and error prone exposing (or forgetting to) neededed dependencies. Yesterday I had a case in which I wanted to test the result of a unit. I wrote a "return" and a "throws" test. Both were green even though I expected the "throws" test to fail because I knew the needed dependency wasnt exposed. But to expose it, I needed to expose 11 other dependencies. I believe a less experienced dev wouldn't have catched that. I fear many lying (sociable) tests will get implemented by us resulting in an increased review time for PRs. Tbh I expect to have a lot of them already. That will likely happen if we test a result which dependends of a result by some dependency's dependency. Imagine a service function Challenge NodeNextWe were told to migrate our backend from CommonJS to NodeNext. There is still a problem with typings we were not able to resolve. I posted a question about this topic here #811. Final thoughtsWe have a really bad feeling about using sociable tests. They could be a great addition but the fact that they can likely lie is a pain point. Test driven development like in solitary tests is not possible (and maybe not wanted) imho due to the need of exposing everything needed. As for me, if I cannot trust a test, the test is not worth anything. Currently we discuss about removing/disabling all sociable tests and just use integration tests instead. They are slower but at least they feel trustworthy. But that leads to the question why using Suites at all. For solitary unit tests we could also just use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there!
We'd love to hear from companies and teams using Suites in their testing workflows! 😄
Feel free to share:
Your feedback helps us understand real-world usage patterns and guides our development priorities.
Thanks for being part of the Suites community!
Beta Was this translation helpful? Give feedback.
All reactions