tape-testing / tape

tap-producing test harness for node and browsers
MIT License
5.77k stars 307 forks source link

CLI options for IDE integrations. #582

Closed 0xorial closed 1 year ago

0xorial commented 1 year ago

I was looking at a way to integrate tape in an IDE (vscode in particular) and it seems that it is missing 3 features:

Do you think it is feasible, would you be open to a PR for that and in that case do you think it is difficult to add?

ljharb commented 1 year ago

I don't think these are really possible.

For the third, the tests aren't static - they have to actually run to notify tape what the tests even are. It only makes sense in mocha's BDD style because you can't nest its, but in tap/tape's style, you can nest tests as much as you want.

For the first or second, how would you identify a given test? Test descriptions aren't guaranteed to be unique, and using the number isn't deterministic (see #301).

0xorial commented 1 year ago

Pity, but thanks for the feedback!

ljharb commented 1 year ago

There might be some usefulness in a pattern-based approach to match on test descriptions - which would be also available as a CLI flag. Are you interested in sketching out how something like that might work?

0xorial commented 1 year ago

Is anyone working on this in Windows? I spent ~1h trying to get the tests to succeed, wondering if I am missing something obvious... :/

ljharb commented 1 year ago

@0xorial afaik it works fine in windows, but certainly i don’t develop in it. If you’re having trouble, please file a separate issue.