Giter Club home page Giter Club logo

go-to-spec's People

Contributors

lourenci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

go-to-spec's Issues

Bug in v0.1.3, incorrect spec file is opened

Hi, I think I've found a bug.

I have a Rails project that has several (50?) files named base.rb in various directories.
Specifically, there are:

app/lib/notification_sender/base.rb
app/lib/notification_sender/email/base.rb
app/lib/notification_content/email/base.rb

# and corresponding spec files
spec/lib/notification_sender/base_spec.rb
spec/lib/notification_sender/email/base_spec.rb
spec/lib/notification_content/email/base_spec.rb

If I run go-to-spec from app/lib/notification_sender/email/base.rb...

What I expected to happen:
The corresponding spec spec/lib/notification_sender/email/base_spec.rb to open.

What happens:
Consistently spec/lib/notification_content/email/base_spec.rb is being opened.

Not sure if just file paths or class definitions are parsed, so I should mention that all classes are defined in the oneliner style:

class NotificationSender::Email::Base < NotificationSender::Base

And all specs like so:

# frozen_string_literal: true

# spring rspec spec/lib/notification_sender/email/base_spec.rb
RSpec.describe NotificationSender::Email::Base do
  # ...
end

Change keyboard shortcut

I don't know if it's possible, I didn't find it anywhere, but it would be great if you could change the keyboard shortcut to not interfere with other shortcuts already using ctrl + shift + T (open a recently closed file for instance)

Add support for Windows

Hi, it looks like the plugin uses forward slash and does not have an option to use backslash if it's a windows computer. would be great if you could add it please!

        "args": [
            "--extensionDevelopmentPath=${workspaceFolder}",
            "--extensionTestsPath=${workspaceFolder}/test"
        ]

Create spec/test file if doesn't exist

Feature request: would be great if you could configure it to create the test file it if doesn't exist. Would prob have to configure the test file pattern, e.g. "-test", ".test", ".spec" etc. Anyway just a thought.

Thanks for the extension, it works great!

Doesn't work for Hanami

I'm using the Ruby framework Hanami and it doesn't work at all. Sample folder structure of the relevant parts:

- apps
  - web
    - controllers
      - users
        - create.rb
        - update.rb
- lib
  - cyg
    - repositories
      - users
        - user_repository.rb
    - services
      - users
        - create.rb
        - update.rb
- spec
  - web
    - controllers
      - users
        - create_spec.rb
        - update_spec.rb
    - features
      - users
        - create_spec.rb
        - update_spec.rb
  - lib
    - cyg
      - repositories
        - users
          - user_repository_spec.rb
      - services
        - users
          - create_spec.rb
          - update_spec.rb

Add setting to specify spec suffix

In my team we name our spec files like this: file-spec.js instead of file.spec.js. I think that would be great to define the suffix style in settings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.