Test Navigator
This package allows you to quickly navigate between implementation and test files.
Installation
apm install test-navigator
Or search for test-navigator
in the Atom settings view.
Configuration
By default, Test Navigator will ignore anything contained in node_modules. This will likely be expanded on and configurable in the future.
Test File Patterns
This setting is a comma separated list of test patterns that determines the possible test or implementation flies. For instance, if Test Navigator is given the pattern Spec, toggling Test Navigator from index.js will cause it to look for indexSpec.js. Conversely, toggling Test Navigator from indexSpec.js will cause it to look for index.js.
Location
This setting dictates where the found file should appear. By default, it will appear to the right of the open file. Additional options include down and none.
Key Bindings
The default cmd-alt-n
or ctrl-alt-n
will toggle test-navigator for the currently open file.
This can be edited by defining key bindings as shown below.
'.platform-darwin atom-text-editor':
'cmd-alt-n': 'test-navigator:navigate'
'.platform-linux atom-text-editor, .platform-win32 atom-text-editor':
'ctrl-alt-n': 'test-navigator:navigate'