Spectron 将于 2022 年 2 月 1 日弃用。
Beginning in February 2022, Spectron will be officially deprecated by the Electron team.
Why Deprecate 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.
After reviewing several available options for Spectron's continued maintenance, the Electron team has decided to deprecate Spectron in 2022.
The following is our planned deprecation timeline:
- November 2021 - January 2022: The Electron team will continue to accept pull requests from the community.
- January 2022: A final version of announcement warning about Spectron's deprecation will be released.
- February 1, 2022: Spectron's repo will be marked as "archived". No more pull requests will be accepted.
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.
Alternatives to Spectron
如果您当前在项目中使用 Spectron，并希望迁移到替代测试解决方案，您可以在此处阅读我们的 自动化测试指南。
我们目前有其他几种推荐替代Spectron的办法，包括Playwright和WebDriverIO。 Official tutorials for each option can be found in our Automated Testing documentation.
We here on the Electron team appreciate you using Spectron and Electron. 我们理解，你们中的许多人都依赖 Spectron 来测试您的应用程序，我们希望让这种过渡尽可能轻松。 感谢您选择Electron！