test-jumper

Jump between your unit test and your code with a single hotkey

danielcooper

760

0

1.0.0

MIT

GitHub

test-jumper for Atom

CircleCI

Flick between your unit tests and your code with a hotkey [cmd-ctrl-.]

alt text

Setting up

By default this ships with mappings for:

If you want to add your own bindings add an entry in your atom config like so:

'.source.elixir':
    "test-jumper":
      path_pairs: [
        ['lib', 'test']
      ]
      test_template: "{}_test.exs"
      test_matcher: "(.*)_test.exs"
      source_template: "{}.ex"
      source_matcher: "(.*).ex"
      test_identifier: ".*_test.exs"

path_pairs: An array of tuples specifying how directories map between src and your test files

test_template: Each match in the test_matcher will replace {}

test_matcher: A regex capturing the key parts of your test file to use to find the src name.

test_identifier: A regex identifying a test file

Better yet, why not open a PR with your changes?