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

Glob patterns in runner.src method #980

Closed
kirovboris opened this Issue Nov 22, 2016 · 3 comments

Comments

@kirovboris
Copy link
Collaborator

kirovboris commented Nov 22, 2016

Are you requesting a feature or reporting a bug?

feature

What is the current behavior?

runner.src(...) method does not support glob patterns in parameters, it's inconsistent with cli.

What is the expected behavior?

I want to have possibility specify global pattern or array of patterns in runner.src(...) method.

runner.src(['C:/project/subProject1/**/*.js', 'C:/project/subProject2/**/*.js']);

Specify your

  • operating system: any
  • testcafe version: 0.10.0
  • node.js version: any
@miecio1212

This comment has been minimized.

Copy link

miecio1212 commented Jul 17, 2017

@inikulin I saw that but I don't see solution here...

@AlexanderMoskovkin

This comment has been minimized.

Copy link
Contributor

AlexanderMoskovkin commented Jul 17, 2017

As a workaround you can use the node-glob module to find files by a pattern and pass the files array to the src method.

@inikulin

This comment has been minimized.

Copy link
Collaborator

inikulin commented Jul 17, 2017

@miecio1212 The solution is either to issue a PR, or wait till functionality will be implemented by someone else, or use workaround that @AlexanderMoskovkin suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.