atom-ava
atom-ava copied to clipboard
Meta
I have big plans for this, the Sublime plugin, and the VS Code plugin. Snippets are only a start.
An awesome idea, from https://github.com/sindresorhus/ava/issues/183, is to run and see the result of a test run directly in the editor. And ability to quickly run the test your cursor is in, in the test file. We could even show the result of tests in the gutter, like linting. (Let's discuss this thing in https://github.com/sindresorhus/atom-ava/issues/3).
Let's do a brainstorming of what other useful things an editor plugin could do.
// @vdemedes @jamestalmage @kevva @sotojuan @novemberborn @ariporad @SamVerschueren
How about displaying (maybe in tooltip) actual values of variables in assertions via power-assert?
Example:
let actual = 'hello';
let expected = 'world';
t.is(actual, expected);
And on hover we display 'hello' over actual
and 'world' over expected
.
@vdemedes That's a great idea!
I think wallaby.js has some cool features in their VSCode extension.
- Display line by line code coverage in editor
- Console.log output in editor in tests
- Re-runs affected tests and shows results right in editor
- Navigate to tests that cover a specific line of code
Here are some vscode/AVA features I'm looking for:
- An AVA problem matcher. Apparently, you can create your own.
- An AVA debugger extension. It's already been requested in a vscode issue, but they're saying it should be a debugger extension.
-
TypeScript support or at the very least a guide to show how to compile with
tsc
in the background while running theava
command in the foreground.
Note: I'm currently seeing a lot of garbage in my vscode AVA task. It looks like this: