bdaniels-mini:testssss bdaniels$ ./runtests.py
WARNING:wtframework:Config file not specified. Using config/defaults.yaml
ERROR:wtframework:Error loading config file: default
ERROR:wtframework:An error occurred while loading config file: (u'Error reading config file default', IOError(2, 'No such file or directory'))
Traceback (most recent call last):
File "./runtests.py", line 20, in <module>
from wtframework.wtf.config import ConfigReader
File "/Library/Python/2.7/site-packages/wtframework/wtf/config.py", line 149, in <module>
WTF_CONFIG_READER = ConfigReader()
File "/Library/Python/2.7/site-packages/wtframework/wtf/config.py", line 69, in __init__
raise e
wtframework.wtf.config.ConfigFileReadError: (u'Error reading config file default', IOError(2, 'No such file or directory'))
bdaniels-mini:testssss bdaniels$ ./runtests.py
WARNING:wtframework:Config file not specified. Using config/defaults.yaml
ERROR:wtframework:Error loading config file: default
ERROR:wtframework:An error occurred while loading config file: (u'Error reading config file default', IOError(2, 'No such file or directory'))
Traceback (most recent call last):
File "./runtests.py", line 20, in <module>
from wtframework.wtf.config import ConfigReader
File "/Library/Python/2.7/site-packages/wtframework/wtf/config.py", line 149, in <module>
WTF_CONFIG_READER = ConfigReader()
File "/Library/Python/2.7/site-packages/wtframework/wtf/config.py", line 69, in __init__
raise e
wtframework.wtf.config.ConfigFileReadError: (u'Error reading config file default', IOError(2, 'No such file or directory'))
also, I tried setting up your suggested layout:
configs/
browsers/
grid-iphone.yaml
grid-ipad.yaml
env/
stage.yaml
dev.yaml
prod.yaml
In your documentation, in various places it suggests setting the WTF_ENV variable differently using either a comma, a semi-colon, or a colon as a separator:
ex:
export WTF_ENV=env/stage;browers/grid-iphone
none seem to work....
also how do you do that on the command line?
./runtests.py -c env/stage;browsers/grid-iphone ?????
I'd rather use the command line option so that it can be ran by a CI server. I wasn't aware you needed an equal sign in the --config line, it wasn't documented.
tried this on a default project --withexamples:
$ ./runtests.py --config=default
WARNING:wtframework:Config file not specified. Using config/defaults.yaml
Setting config WTF_ENV to: default
it's looking in:
/Users/bdaniels/Documents/Workspace/Python/configs/default.yaml
it should be:
/Users/bdaniels/Documents/Workspace/Python/IFH/configs/default.yaml