-
Notifications
You must be signed in to change notification settings - Fork 14
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
Allow multiple patterns (globs & exclude patterns) #32
Comments
Would this break the functionality outlined here? https://github.com/testdouble/teenytest#as-an-npm-script
|
Yeah, I suppose it would change that behavior, but since it's a dev productivity/ergonomic issue that can be remedied with a second task, I wouldn't feel too bad about breaking it |
Just dropping in to comment that I would fully expect the unix-ism |
A related use-case that I had hoped would work:
Our test suite is set up conventionally, so we don't pass a glob to teenytest. However, when wanting to filter tests, the glob seems to be required. Passing just the filter pattern alone doesn't work. |
how about And while I like the |
agree on |
👋🏼 I wanted to leave a quick update on this since it took a little while for me to get my bearings and I had a false start or two: I have a WIP branch that changes how I had a chat with @jasonkarns about expected behaviors and based on that I've updated criteria so that:
The existing SAFE tests are passing with these changes. (i.e. the My next step is to update the cli so that the options are parsed and passed down as intended and make sure package defaults are appropriate. I'll be adding bats tests for this. Although there's still a little work to do, I'm open to any early feedback or change suggestions. 🙂 |
Awesome Cliff! Please open a WIP PR so it's easier to follow along with the progress at a distance. In general if Jason says it's good I'm inclined to follow him blindly in all matters regarding CLI behavior |
Sorry Justin, I was away on vacation and am catching up. 🙂 You got it. Here's the PR: #47 |
Right now teenytest only accepts one glob of tests, it should be able to take an array of them (whitespace separated on the CLI, an array in package.json & api config).
The text was updated successfully, but these errors were encountered: