blakeherrington / vscode-jump-to-test Goto Github PK
View Code? Open in Web Editor NEWVscode extension to navigate to test files
Vscode extension to navigate to test files
Hi!
I like this extension and I found that some projects use the word tests
instead so fileName.js
becomes fileName.tests.js
. Can you please consider adding that mapping as well?
Hi, I installed the app and when I try to use it with file *.ts
Nothing happens and I do not have any message/error ๐ค
For one reason or another, sometimes the wrong file gets opened when the command is triggered.
There are probably a few cases of this - but example I found is this:
.../app/controllers/private/v1/example_controller.rb
will open
.../test/controllers/portal_example_controller_test.rb
This example could be resolved by making an adjustment to the glob pattern.
If you have multiple files with the same name in your project, the extension doesn't know which one to open and will just open a random one.
For example, if there were multiple App.js
files, it would open a random App.spec.js
instead of the correct one.
A potential fix would be to assume the directory structure of the test matches the existing file, but that would make things more rigid. Or a way to match to the "closest" file.
Often times when I'm writing tests I like to have the test file and the source file side-by-side in a split window view.
When using Vue SPAs with vue-test-utils, your component is in Foo.vue
, and the test is in Foo.spec.ts
. Since one has a .vue
extension, and the other has a .ts
extension, this won't work
Hello :)
Would be nice to have the possibility to automatically search for spec file when opening a source file and if found add a link to it in the bottom toolbar.
A "Create File" button could be added to the "Unable to find test file" message box, which would create the test file in the expected location
@blakeherrington is there a way for this to work with vue files?
Sometimes it takes a second for the extension to find and open the test file. It would be nice if there was some sort of indication that the extension was activated and working.
Add unit tests!
I have a quick description in extension.test.ts
of what needs to be tested, but we need to fill it out and add CI.
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.