lourenci / go-to-spec Goto Github PK
View Code? Open in Web Editor NEWVS Code extension for switch between the code and the spec file
VS Code extension for switch between the code and the spec file
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!
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"
]
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
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
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.
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.