vs-picgo | A VSCode plugin of PicGo
kandi X-RAY | vs-picgo Summary
kandi X-RAY | vs-picgo Summary
vs-picgo is a VSCode extension for uploading images to a remote image hosting service and insert the url into the current editing file. It's much more efficient than other tools. And it can give us the better experience of uploading images. vs-picgo supports 8 kinds of image hosting services: weibo, qiniu, tcyun, upyun, github, aliyun, imgur and SM.MS, which are supported by PicGo-Core. And the plugin feature of PicGo-Core is working in progress.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vs-picgo
vs-picgo Key Features
vs-picgo Examples and Code Snippets
Community Discussions
Trending Discussions on vs-picgo
QUESTION
It seems that coverage report with coveralls
is not possible for VSCode extension built with TypeScript.
Currently, I am adding test cases to our project https://github.com/PicGo/vs-picgo/pull/42, I have found several ways to report coverages, but none of them work for me.
Using custom TestRunnerThe official documentation mentions little about custom test runners, but I found a post here. It works when I use F5
to launch an Extension Test
, but does not work when I run npm run test
in the console (Got no coverage output at all).
I have also tried to understand the custom runner (source code) in the blog post, but I found I have nothing to do because I do not know why it works.
Usingnyc
nyc
with mocha is very powerful, but we cannot take advantage of it. When I run nyc ./node_modules/vscode/bin/test
, I will got 0% coverage:
I have searched the issue page of nyc
, lots of the same 0% coverage problems about TS projects exist, but none of them are the same with our environment. The main difference is that they are using mocha
for testing, not like VSCode's ./node_modules/vscode/bin/test
script, it will create a new process to run the test js files. I don't know how to deal with this.
I searched all the issues (mocha, tyc, istanbul, vscode, etc...), and there are few (I did not find any ) vscode TypeScripts are using coverage report for me to copy from. So my question is: how do I get the coverage report for my VSCode TS extension?
...ANSWER
Answered 2019-May-25 at 03:48See this post for more information, you can just copy the test runner code to your project's test/index.ts
file.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vs-picgo
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page