test-utils

Add, remove, and move .only in tests

Chris Breiding

324

0

Bug Reports

0.2.1

MIT

GitHub

Test Utils

Test utilities package for Atom. Currently supports easily adding and removing .only and .skip modifiers with keyboard shortcuts or menu options.

Test Utils in action

Available Commands

Shortcut Action Mnemonic
ctrl-alt-a ctrl-alt-o Add a .only to the current line if there's a describe, context, or it add only
ctrl-alt-r ctrl-alt-o Remove the .only from the current line remove only
ctrl-alt-r ctrl-alt-a ctrl-alt-o Remove all .onlys from the current file remove aall only
ctrl-alt-m ctrl-alt-o Remove all .onlys from the current file and add a .only to the current line if there's a describe, context, or it move only
ctrl-alt-a ctrl-alt-s Add a .skip to the current line if there's a describe, context, or it add skip
ctrl-alt-r ctrl-alt-s Remove the .skip from the current line remove skip
ctrl-alt-r ctrl-alt-a ctrl-alt-s Remove all .skips from the current file remove all skips

About

The cursor can be anywhere on the line for the add and move commands. The shortcuts are meant to be used hold alt and ctrl, then pressing the letters in succession. So ctrl-alt-a ctrl-alt-o means holding alt + ctrl, pressing a, then pressing o.

There are also menu options under Packages > Test Utils as well as context options when you right click.