Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Running a single test? #769

Closed
joshjordan opened this issue Nov 22, 2017 · 1 comment
Closed

Running a single test? #769

joshjordan opened this issue Nov 22, 2017 · 1 comment
Labels
question The issue's author needs more information
Milestone

Comments

@joshjordan
Copy link

What's the right syntax for running specific tests or specific test files? It has become very difficult for us to hone in on the right output when debugging a failing test. I have tried reusing the commands that buffalo tests spits out as it starts up, but they target directories rather than single tests or test files, and they don't include the schema management that Buffalo does.

We love the framework - thanks for your hard work! If you can give us some notes on this, we'd be happy to clean it up and contribute back to documentation.

@stanislas-m stanislas-m added the question The issue's author needs more information label Nov 22, 2017
markbates added a commit that referenced this issue Nov 27, 2017
@markbates markbates added this to the 0.10.2 milestone Nov 27, 2017
@markbates
Copy link
Member

@joshjordan there are ways, but it is bizarrely difficult when using test suites. The good news, a patch for this in PR form now and should be in 0.10.2 which is slated for release this week.

The syntax will look like:

$ b test -m "Foo"

That will run all tests that have Foo in them.

markbates added a commit that referenced this issue Nov 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question The issue's author needs more information
Projects
None yet
Development

No branches or pull requests

3 participants