ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Test​Cafe Test Runner

by churkin ST2/ST3

Plugin for working with TestCafe tests via SublimeText IDE.

Details

Installs

  • Total 128
  • Win 54
  • OS X 55
  • Linux 19
Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6
Windows 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 1 0 1 0 0 0 0 1 1 0 0 0 0 0 2 0 1 0 0 0 0 0 0 0 1
OS X 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0
Linux 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
github.​com

<!DOCTYPE html>

testcafe-sublimetext/README.md at master · churkin/testcafe-sublimetext · GitHub
<meta property="og:image" content="https://avatars0.githubusercontent.com/u/5182202?s=400&amp;v=4" /><meta property="og:site_name" content="GitHub" /><meta property="og:type" content="object" /><meta property="og:title" content="churkin/testcafe-sublimetext" /><meta property="og:url" content="https://github.com/churkin/testcafe-sublimetext" /><meta property="og:description" content="testcafe-sublimetext - Plugin for working with TestCafe tests via SublimeText IDE." />

<meta name="google-site-verification" content="KT5gs8h0wvaagLKAVWq8bbeNwnZZK1r1XQysX3xurLU">

<meta name="hostname" content="github.com">
<meta name="user-login" content="">

  <meta name="expected-hostname" content="github.com">
<meta name="js-proxy-site-detection-payload" content="MzRmMDg1ZjgyYzIyZjY4MWI2ODM4YmM3YWRhYTU1OGQyODZlNjY2N2Y0Yzk2YTYzZmVmY2IwOTUwYjNkYmI2M3x7InJlbW90ZV9hZGRyZXNzIjoiNTAuMTE2LjMzLjI5IiwicmVxdWVzdF9pZCI6IjlEOTI6NTM3QzozMDcxMDAwOjU5Q0JCNTA6NUFEOUQ2MzIiLCJ0aW1lc3RhbXAiOjE1MjQyMjU2MjcsImhvc3QiOiJnaXRodWIuY29tIn0=">

<meta name="enabled-features" content="UNIVERSE_BANNER,FREE_TRIALS,MARKETPLACE_INSIGHTS,MARKETPLACE_SELF_SERVE,MARKETPLACE_INSIGHTS_CONVERSION_PERCENTAGES">

<link href="https://github.com/churkin/testcafe-sublimetext/commits/master.atom" rel="alternate" title="Recent Commits to testcafe-sublimetext:master" type="application/atom+xml">

<link rel="canonical" href="https://github.com/churkin/testcafe-sublimetext/blob/master/README.md" data-pjax-transient>

Skip to content
<header class="Header header-logged-out  position-relative f4 py-3" role="banner">

</div>

<div class="HeaderMenu HeaderMenu--bright d-flex flex-justify-between flex-auto">
    <nav class="mt-0">
      <ul class="d-flex list-style-none">
          <li class="ml-2">
            <a class="js-selected-navigation-item HeaderNavlink px-0 py-2 m-0" data-ga-click="Header, click, Nav menu - item:features" data-selected-links="/features /features/project-management /features/code-review /features/project-management /features/integrations /features" href="/features">
              Features

  • Business
  • <li class="ml-4">
                <a class="js-selected-navigation-item HeaderNavlink px-0 py-2 m-0" data-ga-click="Header, click, Nav menu - item:explore" data-selected-links="/explore /trending /trending/developers /integrations /integrations/feature/code /integrations/feature/collaborate /integrations/feature/ship showcases showcases_search showcases_landing /explore" href="/explore">
                  Explore
    

    <li class="ml-4">
                    <a class="js-selected-navigation-item HeaderNavlink px-0 py-2 m-0" data-ga-click="Header, click, Nav menu - item:marketplace" data-selected-links=" /marketplace" href="/marketplace">
                      Marketplace
    

  • Pricing
  • <div class="d-flex">
          <div class="d-lg-flex flex-items-center mr-3">
            <div class="header-search scoped-search site-scoped-search js-site-search" role="search">
    

    </div>
    
        <span class="d-inline-block">
            <div class="HeaderNavlink px-0 py-2 m-0">
              <a class="text-bold text-white no-underline" href="/login?return_to=%2Fchurkin%2Ftestcafe-sublimetext%2Fblob%2Fmaster%2FREADME.md" data-ga-click="(Logged out) Header, clicked Sign in, text:sign-in">Sign in</a>
                <span class="text-gray">or</span>
                <a class="text-bold text-white no-underline" href="/join?source=header-repo" data-ga-click="(Logged out) Header, clicked Sign up, text:sign-up">Sign up</a>
            </div>
        </span>
      </div>
    </div>
    

    <div id="js-flash-container">
    

    <ul class="pagehead-actions">
    

  • Watch

  • Star
    <a class="social-count js-social-count" href="/churkin/testcafe-sublimetext/stargazers"
      aria-label="10 users starred this repository">
      10
    </a>
    

  • Fork
    <a href="/churkin/testcafe-sublimetext/network" class="social-count"
       aria-label="3 users forked this repository">
      3
    </a>
    

  • <h1 class="public ">
    

    /testcafe-sublimetext

    </div>
    

    Code

    <span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
      <a itemprop="url" data-hotkey="g i" class="js-selected-navigation-item reponav-item" data-selected-links="repo_issues repo_labels repo_milestones /churkin/testcafe-sublimetext/issues" href="/churkin/testcafe-sublimetext/issues">
        <svg class="octicon octicon-issue-opened" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"/></svg>
        <span itemprop="name">Issues</span>
        <span class="Counter">3</span>
        <meta itemprop="position" content="2">
    

    Pull requests 0

    <a data-hotkey="g b" class="js-selected-navigation-item reponav-item" data-selected-links="repo_projects new_repo_project repo_project /churkin/testcafe-sublimetext/projects" href="/churkin/testcafe-sublimetext/projects">
      <svg class="octicon octicon-project" viewBox="0 0 15 16" version="1.1" width="15" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M10 12h3V2h-3v10zm-4-2h3V2H6v8zm-4 4h3V2H2v12zm-1 1h13V1H1v14zM14 0H1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1z"/></svg>
      Projects
      <span class="Counter" >0</span>
    

    Insights

    Permalink
    <div class="BtnGroup float-right">
      <a href="/churkin/testcafe-sublimetext/find/master"
            class="js-pjax-capture-input btn btn-sm BtnGroup-item"
            data-pjax
            data-hotkey="t">
        Find file
      </a>
      <clipboard-copy
            for="blob-path"
            aria-label="Copy file path to clipboard"
            class="btn btn-sm BtnGroup-item tooltipped tooltipped-s"
            copied-label="Copied!">
        Copy path
      </clipboard-copy>
    </div>
    <div id="blob-path" class="breadcrumb">
      <span class="repo-root js-repo-root"><span class="js-path-segment"><a data-pjax="true" href="/churkin/testcafe-sublimetext"><span>testcafe-sublimetext</span></a></span></span><span class="separator">/</span><strong class="final-path">README.md</strong>
    </div>
    

    Fetching contributors…
    <div class="commit-tease-contributors">
      <img alt="" class="loader-loading float-left" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32-EAF2F5.gif" width="16" height="16" />
      <span class="loader-error">Cannot retrieve contributors at this time</span>
    </div>
    

    <div class="BtnGroup">
      <a id="raw-url" class="btn btn-sm BtnGroup-item" href="/churkin/testcafe-sublimetext/raw/master/README.md">Raw</a>
        <a class="btn btn-sm js-update-url-with-hash BtnGroup-item" data-hotkey="b" href="/churkin/testcafe-sublimetext/blame/master/README.md">Blame</a>
      <a rel="nofollow" class="btn btn-sm BtnGroup-item" href="/churkin/testcafe-sublimetext/commits/master/README.md">History</a>
    </div>
    
    
        <button type="button" class="btn-octicon disabled tooltipped tooltipped-nw"
          aria-label="You must be signed in to make or propose changes">
          <svg class="octicon octicon-pencil" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M0 12v3h3l8-8-3-3-8 8zm3 2H1v-2h1v1h1v1zm10.3-9.3L12 6 9 3l1.3-1.3a.996.996 0 0 1 1.41 0l1.59 1.59c.39.39.39 1.02 0 1.41z"/></svg>
        </button>
        <button type="button" class="btn-octicon btn-octicon-danger disabled tooltipped tooltipped-nw"
          aria-label="You must be signed in to make or propose changes">
          <svg class="octicon octicon-trashcan" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M11 2H9c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1H2c-.55 0-1 .45-1 1v1c0 .55.45 1 1 1v9c0 .55.45 1 1 1h7c.55 0 1-.45 1-1V5c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 12H3V5h1v8h1V5h1v8h1V5h1v8h1V5h1v9zm1-10H2V3h9v1z"/></svg>
        </button>
    

    46 lines (30 sloc) 2.63 KB

    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

    </div>
    

    You can’t perform that action at this time.
    <script crossorigin="anonymous" type="application/javascript" src="https://assets-cdn.github.com/assets/compat-8e5db19dd0f30433798e3cb0118e654c.js"></script>
    <script crossorigin="anonymous" type="application/javascript" src="https://assets-cdn.github.com/assets/frameworks-cae483278a9c7126c25f62f25f2cfb95.js"></script>
    
    <script crossorigin="anonymous" async="async" type="application/javascript" src="https://assets-cdn.github.com/assets/github-dea53a441a0d30d1d86626e99f9f7872.js"></script>
    

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

    Press h to open a hovercard with more details.