garris / garris/BackstopJS

Can additional arguments be passed to command?

Open
#1,122 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

Hi,

I was wondering if it's possible to have additional arguments to the general commands? I'm already running my tests with a custom config file:
```
backstop reference --config=main
```
The reason is that I want to have multiple helper files and I want to use the additional argument to determine which helper files to require. This way I can test multiple different applications since each of the helper files contain the URLs and endpoints for Backstop to visit.

Any ideas/pointers on how this can be accomplished?

Thanks

Contributor guide

Open the contributing guide

Research direction

Start by tracing the command parsing for `backstop reference --config=main` and how the custom config and helper files are loaded. Determine whether an additional argument can be defined and propagated to the helper-file selection, then verify the supported invocation and document or test the resulting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.