Hello
I will try to answer all the question, no sure if this wil be include in both 
channels.

*So, in the bitbake environment in which Toaster must be run, how are you using 
tox?*
A: Tox is added locally so far to run the set of instructions, installed 
locally as a python library, the tox.ini file will be located inside toaster 
and all the validation will be only target at toaster, not bitbake as a whole

*Is it bringing us benefit over just running the test tools themselves?*
A: The benefits of using tox are the same for which the tool was created, to 
automate and standardize testing, i am not entirely sure of the implications of 
adding a new library such as tox to the openembedded project, but from a python 
developer perspective with tox we can simplified the execution of the test

*Are we certain we want the opinionated results from flake8?
* A: The inclusion of flake8 as a tool to validate the source code came from a 
perspective as a python developer, to standardize the source code into the PEP8 
guide. This is the topic we have been discussing with Richard and that requires 
the community validation because it will be needed to modify most if not all 
the files in toaster to accomplish the flake8 rules, 
https://www.flake8rules.com/. We need the community feedback on this.

*Does anything else in bitbake pass those tests?
* A: We are only focusing in the toaster lib, if integrated flake8 will only be 
used on toaster python files.

*Since this tells us to ` pip3 install selenium==2.53.2` we already know it 
cannot possibly be what is being done to run the tests. So what else is wrong 
in those steps?
* A: In order to reproduce the test we have been using the README files 
available inside the toaster library, this are the steps we are following to do 
so :
1 - We are using poky as the global project to execute all the changes
2 - The requirements needed to run toaster and the toaster test suite are 
located on the files 
https://git.openembedded.org/bitbake/tree/toaster-requirements.txt and 
https://git.openembedded.org/bitbake/tree/lib/toaster/tests/toaster-tests-requirements.txt.
3 - After executing the command *source oe-init-build-env* from the poky 
directory we are redirected to */poky/build*
4 - We can execute the following command to run the test on toaster : 
*EVENTREPLAY_DIR=./ TOASTER_BUILDSERVER=1 
DJANGO_SETTINGS_MODULE=toastermain.settings_test 
../bitbake/lib/toaster/manage.py test tests.db tests.commands tests.builds 
tests.browser tests.functional tests.views*
5 - If we execute the command from another path,  the global parameters must be 
adjusted. This is one of the elements that can be accomplish by using tox and 
having all elements already define for any user.

Please let us know if this answer your questions or we need to provide more 
information
Thanks
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5882): https://lists.yoctoproject.org/g/toaster/message/5882
Mute This Topic: https://lists.yoctoproject.org/mt/102049394/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/toaster/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to