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

Execute one test from a test file #281

Closed
rmarescu opened this issue Jan 19, 2025 · 0 comments · Fixed by #338
Closed

Execute one test from a test file #281

rmarescu opened this issue Jan 19, 2025 · 0 comments · Fixed by #338
Milestone

Comments

@rmarescu
Copy link
Member

rmarescu commented Jan 19, 2025

What

When running shortest for a given test file, have the ability to execute a given test by passing a line number.

  • works with chained tests
  • callbacks work as expected

Why

Useful to debug a given test within a file, without executing all tests. Save time & execution cost.

Example

pnpm shortest pnpm shortest examples/youtube.test.ts:6

executes only this test. Line number 6 can be any value 5-12.

@rmarescu rmarescu moved this to Scoping needed in Shortest Jan 19, 2025
@rmarescu rmarescu moved this from Scoping needed to Building needed in Shortest Jan 22, 2025
@rmarescu rmarescu added this to the v0.4.5 milestone Feb 3, 2025
@github-project-automation github-project-automation bot moved this from Building needed to Done in Shortest Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant