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

run just one "it" test #21

Closed
drnic opened this issue Jul 18, 2012 · 4 comments · May be fixed by #36
Closed

run just one "it" test #21

drnic opened this issue Jul 18, 2012 · 4 comments · May be fixed by #36

Comments

@drnic
Copy link

drnic commented Jul 18, 2012

Is it possible now, or conceivably possible, to run (& then re-run) just one of the "it" tests in a plan script?

Or is (only possible) the solution to put each test in a separate script?

@bmizerany
Copy link
Owner

You want to run a test twice?

On Wed, Jul 18, 2012 at 9:55 AM, Dr Nic Williams
[email protected]
wrote:

Is it possible now, or conceivably possible, to run (& then re-run) just one of the "it" tests in a plan script?

Or is (only possible) the solution to put each test in a separate script?


Reply to this email directly or view it on GitHub:
#21

@bmizerany
Copy link
Owner

Try:


run_twice() {
    true
}

it_runs_twice_first() {
    run_twice()
}

it_runs_twice_second() {
    run_twice()
}

@drnic
Copy link
Author

drnic commented Jul 18, 2012

Ha, no I meant "run a specific test within a script, and not all the other tests".

It's ok, I'll close this. I can read the source and figure out what's what.

@drnic drnic closed this as completed Jul 18, 2012
@bmizerany
Copy link
Owner

Oh. No. That support does not exist. Pull-request welcome. :)

On Jul 18, 2012, at 12:46 PM, Dr Nic [email protected] wrote:

Ha, no I meant "run a specific test within a script, and not all the other tests".

It's ok, I'll close this. I can read the source and figure out what's what.


Reply to this email directly or view it on GitHub:
#21 (comment)

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

Successfully merging a pull request may close this issue.

2 participants