TopicFriends / TopicFriends

TopicFriends. Connects people based on shared actionable interests and locations.
https://TopicFriends.org
29 stars 11 forks source link

Reduce copy-paste in TestCafe npm scripts #218

Open karol-depka opened 4 years ago

karol-depka commented 4 years ago

Eg on npm test:all.

Extract common params into config file(s).

Call one script from another. Pass params from command line into scripts and between scripts.

Remove stuff like --screenshots (into config file) --speed (should be passed from command line adhoc if needed)

hvitis commented 4 years ago

Use env variables for host Use passing variables within the scripts with double dash.

karol-depka commented 4 years ago

@hvitis -- to pass also args from outside command-line, e.g. npm run test SOME_ARG1 SOME_ARG2

karol-depka commented 4 years ago

Note: the double dash that is meant here, is a standalone --, not a --someThing

karol-depka commented 4 years ago

@hvitis could You help us with this?