16 plugins to extend TestCafe functionality
TestCafe manages end-to-end testing process out of the box. It starts browsers, runs tests and shows results. But there is also a bunch of plugins which extend its functionality. Here’s a list of the most popular ones.
- Connect TestCafe with cloud browser providers (2)
- Run tests in headless browsers and mobile emulators (2)
- Test accessibility (1)
- Integrate tests into your task runner (2)
- Write tests with your favorite selectors (3)
- Customize test reports (2)
- Run tests from IDE (2)
- Build your own plugins (2)
Connect TestCafe with cloud browser providers
(2 plugins, both by belym.a.2105)
With testing clouds, you don’t have to set up your own testing environment. They let you run your tests in the cloud. And they provide mobile and desktop browsers on various platforms.
Run tests in headless browsers and mobile emulators
But sometimes you don’t have a mobile device at hand. In this case, you can use fbsimctl plugin to run tests in Mobile Safari on iOS emulator.
(1 plugin, by devexpress)
Accessibility testing is meant to provide digital equality. And aXe is an engine for automating web UI accessibility tests. With aXe plugin, you can use aXe to perform accessibility tests in TestCafe.
Integrate tests into your task runner
Write tests with your favorite selectors
If you feel that selector options provided by TestCafe are not enough, install one of these plugins to use different selectors:
- A plugin for React selectors
- The one for Angular selectors is coming soon (I’ll add a link here when it’s out)
- A plugin for Aurelia selectors
- And the one for Vue selectors
Customize test reports
By default, TestCafe shows the time spent for the entire run. To measure the time of each task run use TimeCafe plugin. This task timing is most important when looking for performance regressions.
Run tests from IDE
There’s a couple of plugins which allow to launch tests directly from IDE.
The one for MS Visual Studio users called TestCafe Test Runner.
And testcafe-sublimetext which does the same for SublimeText IDE.
Build your own plugins
If you feel like building your own plugins, check out these plugin generators from TestCafe creators.
Build a browser provider to set up tests on your on-premises server farm, to use a cloud testing platform, or to start your local browsers in a special way. Use this Yeoman generator so that you will need to write only a few lines of code.
And make sure to send me a quick note, so I can include your plugin into this list.
Some of these plugins are made by Github community members. Others are from TestCafe developers: they roll extended functionality out as plugins not to clutter the original app. Choose the ones which fit you best and power up your tests.
If you think that I’ve missed something, please tell me in the comments!