Tools: polymer test `--config-file` is ignored

Created on 29 May 2018  路  4Comments  路  Source: Polymer/tools

polymer test --help says:
~
--config-file string Config file that needs to be used by wct. ie: wct.config-sauce.js
~
~

Looking through https://github.com/Polymer/tools/blob/219ab4f3f9f8773e75f8c6181109e8966082b9af/packages/cli/src/commands/test.ts#L139-L157: The argument is passed directly to wct's cli.

That one however expects configFile: https://github.com/Polymer/tools/blob/219ab4f3f9f8773e75f8c6181109e8966082b9af/packages/web-component-tester/runner/config.ts#L349-L352

I'm not sure how to resolve this, as polymer-cli has both options with camelCase and with dash-case.

Right now though the result of this is that --config-file doesn't work, and I need to do something like this in Travis: mv travis-wct.conf.json wct.conf.json. Clearly ugly :/

Most helpful comment

All 4 comments

I'm running into this, too. Issue on old repo here: https://github.com/Polymer/polymer-cli/issues/919

鈥攃onfigFile

here's what happens when I attempt to use that w/ polymer-cli:
screen shot 2018-05-31 at 11 50 54 am

when I do
polymer test --config-file wct.config.json
the config gets ignored.

when I do
wct --configFile wct.config.json
everything works fine.

This appears to be the same issue as https://github.com/Polymer/polymer-cli/issues/919

Is this an issue where a PR would be appreciated?

Was this page helpful?
0 / 5 - 0 ratings