有没有人知道如何使用自定义参数运行规范命令行并在python插件中处理它?
例如:当我启动仪表时,我还希望将额外的参数/标志传递给命令行(>计量运行规范17),然后处理它并在套件启动之前/或在套件启动时使用我的python代码
解决方案被发现 . 我刚刚添加了session enviroment变量 . https://github.com/getgauge/docs.gauge.org/blob/master/configuration.rst
您可以向 env/default/default.properties 添加属性并将该属性用作参数 . 例如 . gauge run --env ci specs 参考:https://docs.gauge.org/latest/configuration.html#id1
env/default/default.properties
gauge run --env ci specs
2 回答
解决方案被发现 . 我刚刚添加了session enviroment变量 . https://github.com/getgauge/docs.gauge.org/blob/master/configuration.rst
您可以向
env/default/default.properties
添加属性并将该属性用作参数 . 例如 .gauge run --env ci specs
参考:https://docs.gauge.org/latest/configuration.html#id1