Skip to main content

Spectron 弃用通知

· 4 min read

Spectron 将于 2022 年 2 月 1 日弃用。

¥Spectron will be deprecated on February 1st, 2022.


从 2022 年 2 月开始,Spectron 将升级到 Electron 团队已正式弃用

¥Beginning in February 2022, Spectron will be officially deprecated by the Electron team.

为什么要弃用 Spectron?

¥Why Deprecate Spectron?

虽然 Spectron 一直在为 Electron 的每个新版本发布新版本,但该项目一年多来几乎没有维护和改进,目前也没有全职维护人员。随着远程模块从 Electron 核心移出并移至 Electron 14 中的外部模块,Spectron 将需要进行重大重写才能继续可靠地运行。

¥While Spectron has consistently put out new releases for each new version of Electron, the project has had very little maintenance and improvements for well over a year, and currently has no full-time maintainers. With the remote module moving outside of Electron core and into an external module in Electron 14, Spectron will require a major rewrite to continue working reliably.

在审查了 Spectron 持续维护的几个可用选项后,Electron 团队决定在 2022 年弃用 Spectron。

¥After reviewing several available options for Spectron's continued maintenance, the Electron team has decided to deprecate Spectron in 2022.

弃用时间表

¥Deprecation Timeline

以下是我们计划的弃用时间表:

¥The following is our planned deprecation timeline:

  • 2021 年 11 月 - 2022 年 1 月:Electron 团队将继续接受来自社区的拉取请求。

    ¥November 2021 - January 2022: The Electron team will continue to accept pull requests from the community.

  • 2022 年 1 月:关于 Spectron 弃用警告的最终公告版本即将发布。

    ¥January 2022: A final version of announcement warning about Spectron's deprecation will be released.

  • 2022 年 2 月 1 日:Spectron 的仓库将被标记为 "archived"。不再接受拉取请求。

    ¥February 1, 2022: Spectron's repo will be marked as "archived". No more pull requests will be accepted.

2022 年 2 月 1 日之后,Electron 将继续无限期地保留 Spectron 代码库,以便其他人可以 fork 或将现有代码用于他们的项目。我们希望这能为仍然依赖 Spectron 的项目提供更长的过渡期。

¥Following February 1st, 2022, Electron will continue to leave the Spectron repo up indefinitely, so that others are welcome to fork or use the existing code for their projects. We hope this will help provide a longer transition to any projects that may still depend on Spectron.

Spectron 的替代方案

¥Alternatives to Spectron

如果你目前在项目中使用 Spectron,并希望迁移到其他测试解决方案,你可以阅读我们的 自动化测试指南请见此处

¥If you're currently using Spectron in your project and would like to migrate to an alternative testing solution, you can read our guide for automated testing here.

目前,我们推荐了其他几种 Spectron 的替代方案,包括 Playwright 和 WebDriverIO。每个选项的官方教程都可以在我们的自动化测试文档中找到。

¥We currently have several other recommended alternatives to Spectron, including Playwright and WebDriverIO. Official tutorials for each option can be found in our Automated Testing documentation.

下一步计划

¥What's Next

Electron 团队感谢你使用 Spectron 和 Electron。我们理解许多人依赖 Spectron 来测试应用,我们希望尽可能让你轻松完成这一过渡。感谢你选择 Electron!

¥We here on the Electron team appreciate you using Spectron and Electron. We understand that many of you depend on Spectron for testing your apps, and we want to make this transition as painless for you as possible. Thank you for choosing Electron!