Closed spinningarrow closed 8 years ago
I added a failing test to demonstrate this behaviour here: https://github.com/spinningarrow/grunt-protractor-runner/commit/be1377e07df81c6506dacf354c5861921bd6dea3
I did some more digging. According to this comment on StackOverflow, it seems like this is going to be difficult to support since the params
are passed in using command line flags which only support string values.
UPDATE: One solution would be to check if the value of the boolean is true
and only then include the argument. However, this means that if the value is false
, when accessed in browser.params
it will become undefined
, which I'm sure will be cause for surprise.
What do you say regarding not supporting Boolean values (similar to functions and null
) and making a note of this in the readme?
+1
Sorry for taking a long time. Fixed in v2.1.2
I have a grunt config that sets the
params
property like this:But when I log the values (in the
onPrepare
function in my config file, don't think that matters) like this:I get the result
Any idea what's going on?