Master
语言 & 框架

Testing Library

NOT ON THE CURRENT EDITION
This blip is not on the current edition of the Radar. If it was on one of the last few editions it is likely that it is still relevant. If the blip is older it might no longer be relevant and our assessment might be different today. Unfortunately, we simply don't have the bandwidth to continuously review blips from previous editions of the RadarUnderstand more
Published: Oct 28, 2020
Oct 2020
评估?

Testing Library 是用于在众多框架(如ReactVueReact Native 以及 Angular)中测试应用程序的软件包集合。这组库通过鼓励测试用户行为,而非实现细节的方式(如在特定时间点中 UI 存在的元素),来帮助你以用户为中心的方式测试 UI 组件。这种思维方式的好处之一在于测试更加可靠,这也是我们所认为的主要区别。我们建议在任意框架中测试 Web 程序时,都使用该系列工具。尽管仅有 React Testing Library 和 Angular Testing Library 的直接使用经验,我们仍对 Testing Library 印象深刻。