-
Notifications
You must be signed in to change notification settings - Fork 669
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
Implement command line interface #105
Comments
Additional questions: |
looks good. |
@miherlosev You've missed the idea of configuration. You can't run tests in all configurations, you need to choose one. Configurations are flexible: it can contain just information about browsers, so you need to specify files to run, or it can contain just file paths, and you need to specify browser to run in. It just the way to save some set of options and give it an alias. |
ok. |
@miherlosev So, |
But which files we should run? All files in |
The configuration approach is quite clear for me. Maybe the |
Now -f for --files and -f for --fgrep |
TODOs:
|
I like the configurations and they are clear enough to me. And quite useful, I should say.
|
What about making configurations even more flexible and allow to combine them, e.g.:
and configuration for target tests
The I can use them the following way:
Please, let me know what do you think |
I like the idea, but will it be clear what the option value will be applied if some option will be in several configurations? |
I would like to summarize our discussion (both here and in person).
Here is the updated CLI usage:
Please, add final corrections, so I can start implementing it. |
lgtm so far |
Shouldn't we add a browser alias to run a task against all installed browsers? |
@VasilyStrelyaev It's not a big deal to support:
|
LGTM except that it's more conventional to use |
@AndreyBelym I'll be happy too, but AFAIK it's not configurable in |
one question, |
@AlexanderMoskovkin AFAIR we've decide to not make screenshots if screenshot path is not provided. We need to decide how to include screenshots in the report BTW, I remember we've got conversation about it with @kirovboris , but I don't remember the conclusion. Anyway, we'll resolve it context of #104 |
Some additions:
|
nice |
A little update: ports via single option, remotes now specified via browser list (we can have no alises specified, but browser list is required):
|
ok then, if we need to get rid of two-letter flags:
|
Thinking of this recently I came to the following set of options:
It's close to the @kirovboris ideas. IMHO we will have more memorizable flags. |
Cool, I like it. |
flags are better this way, yeah |
nice |
I like it too |
good |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
So, I would like to start bikeshedding regarding CLI. Here is how I see it:
Regarding configurations: the idea is what you can save commonly used configuration with some alias, e.g.:
Then this configuration will be saved to the
.testcaferc
file in the root of the project.Optionally you can use
-gc
flag. In that case configuration will be saved to the global configuration file and can be reused in other projects.It's no required for the configuration to have all options, so you can adopt it for different projects by passing additional options on run:
What bothers me:
,
. E.g.:this is correct:
this is not:
I see it as a possible source for the user confusion.
Please, let me know what do you guys think and how we can make it better.
\cc @AlexanderMoskovkin @churkin @kirovboris @miherlosev @AlexanderMoskovkin @AndreyBelym @helen-dikareva @VasilyStrelyaev @MargaritaLoseva @arubtsov
The text was updated successfully, but these errors were encountered: