• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

test-jumper

Jump between your unit test and your code with a single hotkey
danielcooper
1.0.0 745
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

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:

  • Ruby (Rspec and TestUnit)
  • Elixir
  • CoffeeScript

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?

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by