Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI options for IDE integrations. #582

Closed
0xorial opened this issue Oct 11, 2022 · 5 comments
Closed

CLI options for IDE integrations. #582

0xorial opened this issue Oct 11, 2022 · 5 comments

Comments

@0xorial
Copy link

0xorial commented Oct 11, 2022

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

  • CLI option to run only one test
  • CLI option to exclude a certain test
  • CLI option to dry-run, the tests - enumerate them to IDE without running.

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
Copy link
Collaborator

ljharb commented Oct 11, 2022

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
Copy link
Author

0xorial commented Oct 11, 2022

Pity, but thanks for the feedback!

@0xorial 0xorial closed this as completed Oct 11, 2022
@ljharb
Copy link
Collaborator

ljharb commented Oct 11, 2022

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
Copy link
Author

0xorial commented Oct 16, 2022

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
Copy link
Collaborator

ljharb commented Oct 16, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants