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 · 4 comments
Closed

Glob patterns in runner.src method #980

kirovboris opened this issue Nov 22, 2016 · 4 comments
Assignees
Labels
API MODIFICATION LEVEL: non-breaking changes STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: API TYPE: enhancement The accepted proposal for future implementation.
Milestone

Comments

@kirovboris
Copy link
Collaborator

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
@AlexanderMoskovkin AlexanderMoskovkin added this to the Planned features milestone Feb 15, 2017
@inikulin inikulin modified the milestones: Sprint #7, Planned Apr 25, 2017
@AlexanderMoskovkin AlexanderMoskovkin added TYPE: enhancement The accepted proposal for future implementation. and removed TYPE: proposal labels Apr 26, 2017
@inikulin inikulin modified the milestones: Planned, Sprint #7 May 2, 2017
@inikulin inikulin marked this as a duplicate of #1618 Jul 17, 2017
@miecio1212
Copy link

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

@AlexanderMoskovkin
Copy link
Contributor

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
Copy link
Contributor

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.

@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
kirovboris pushed a commit to kirovboris/testcafe-phoenix that referenced this issue Dec 18, 2019
…press#980) (DevExpress#2687)

* Implemented glob pattern support for runner.src method

* move real path calculation to Bootstrapper class

* minor change

* small refactoring
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API MODIFICATION LEVEL: non-breaking changes STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: API TYPE: enhancement The accepted proposal for future implementation.
Projects
None yet
Development

No branches or pull requests

6 participants