TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

What do y'all use for back end integration testing? (Services, Parallelism)

2 点作者 somethingAlex超过 3 年前
There&#x27;s many unit testing libraries like mocha and jest but there do not seem to be many for integration testing. To be clear, I mean integrating disparate backend modules together. For example, the extremely common case of testing a bunch of lambda functions on AWS.<p>To be fair, there is a lot of overlap. They both need an assertion library, great debugging features for when tests fail, various hooks for setup and teardown, and some way to control the execution flow of tests.<p>It is the last feature where unit testing libraries refuse to play ball. Integration tests oftentimes require a partial order and can be represented as a DAG: certain tests are dependent on other tests before they can run but where possible, parallelism should be employed (for performance reasons). This Github issue refers to my problem but the maintainers completely misunderstand the use case [0]. Mocha has mocha-steps[1] but its a total order and everything is run serially.<p>Is this not a common use case? Are people okay with the performance of running integration test suites serially? Do people just invest in unit tests more and leave integration tests to some script some guy made way back &quot;but it works?&quot;<p>Seems crazy to me that popular libraries don&#x27;t let you declare a partial order for your tests or declare arbitrary dependencies.<p>[0]: https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;jest&#x2F;issues&#x2F;5823 [1]: https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;mocha-steps

暂无评论

暂无评论