Coder Social home page Coder Social logo

testcafe-sublimetext's Introduction

TestCafe Test Runner for SublimeText

Demo

TestCafe is a pure Node.js end-to-end framework for testing web apps. This plugin allows you to run TestCafe tests directly from your SublimeText editor. Tests results will be displayed in a separate panel.

Requirements

This plugin requires that TestCafe is installed globally on your machine. For instructions on how to install TestCafe, refer to the Installing TestCafe article.

How to install

You can install the TestCafe Test Runner plugin like any other SublimeText plugin, as described in SublimeText documentation.

How it works

Initialization

During initialization, the plugin detects browsers installed on your machine. The TestRunner plugin generates new items in the context menu for each installed browser. These items allow you to run tests in a selected browser.

Editor context menu

Running a particular test

To run a particular test, you should place the cursor within the test body and select the required browser from the context menu.

Running tests of a particular test fixture

To run all the tests from a particular test fixture, place the cursor in this fixture (but outside of a test body), and select the required browser from the context menu.

Running all the tests from a test file

To run all the tests from the current file, invoke a context menu when the cursor is placed outside of any fixture, and select the required browser from the context menu. You can also run all tests in a file using the side bar context menu.

Side bar context menu

Rerunning previous tests

If you need to run the same set of tests you ran previously, invoke the context menu and select the Rerun Previous Tests item.

View results

You can view test execution results in a special panel opened using the Ctrl+Alt+L shortcut.

Tests result

Commands and shortcuts

  • Run in chrome (firefox, ie) (CTRL+ALT+1,2,3โ€ฆ) - runs a test or fixture at the cursor position in the required browser.
  • Rerun previous tests (CTRL+ALT+P) - reruns a set of tests that was run previously.
  • Show output panel (CTRL+ALT+L) - opens the TestCafe output panel.
  • Refresh browser list โ€“ forces plugin reinitialization. When initialized, plugin detects all the installed browsers. Use this command to update browser list when you have installed or uninstalled a browser.

Commands

testcafe-sublimetext's People

Contributors

churkin avatar vasilystrelyaev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

testcafe-sublimetext's Issues

How to pass build parameters to the testcafe plugin in Sublime

Hi Folks,

Here is the issue that I am having:
Running a particular script from within Sublime with the plugin throws an error because the web page in question has some js errors.
Running this from a command line with this command and parameter:
testcafe chrome TestFile.js --skip-js-errors
The test passes no problem.
I noticed that there is an option Run in Bash: but there is no option on how to define the bash parameters for the execution phase.

Can you please assist as this would be much easier running from Sublime than the command line

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.