Support for Tape/Tap based test cases

How would I run test cases that I created using the Tape testing framework?

For Mocha, I would open Run/Debug Configurations dialog --> Press + sign and add "Mocha" to run them... wondering what is the alternative for Tape?

 

5 comments
Comment actions Permalink

Currently WebStorm provides no support for this framework. If you miss it, please vote for https://youtrack.jetbrains.com/issue/WEB-20916. For now, you can use Node.js Run configuration to execute Tape tests. Or, you can try developing a plugin for Tape support: see  http://www.jetbrains.org/intellij/sdk/docs/ for basic documentation on plugin development. Mocha runner is not fully open source, but its JavaScript part is open source (https://github.com/JetBrains/mocha-intellij). Also, there is an open source plugin for Karma https://github.com/JetBrains/intellij-plugins/tree/master/js-karma.

1
Comment actions Permalink

Hi!

TAP is a well-specified protocol with lots of open-source implementations, e.g. http://tap4j.org

Regarding plugin development, the only hard part here is to know IntelliJ internals. I believe that some people see that hard part as an easy part. I would definitely prefer them to do the job.

(I wrote tape-dom)

1
Comment actions Permalink

It'd be great if intellij supported it, as many tests can output tap format.

0
Comment actions Permalink

we have a feature request for Tape support, please vote for it:  https://youtrack.jetbrains.com/issue/WEB-20916

1
Comment actions Permalink

To debug your tape tests in any JetBrains IDE (WebStorm, IDEA, etc.) you can use this instruction:
https://medium.com/@vladmystetskyi/how-to-debug-tape-tests-in-jetbrains-ide-webstorm-idea-etc-1979aa99c490

 

0

Please sign in to leave a comment.