cant run bok-choy test on a particular file

44 views
Skip to first unread message

Mahyar Damavand

unread,
Jan 29, 2019, 3:07:35 AM1/29/19
to General Open edX discussion
Hey all
trying to fix an issue during bok-choy tests ( pull#19631 ) I want to run it on my hawthorn devstack.
unfortunately the test is take a long time and I cant wait ( about 20 min up to 2% )
and trying to run the test on the exact file with this command:
> root@52decbbff68c:/edx/app/edxapp/edx-platform# paver test_bokchoy -t acceptance/tests/video/test_video_module.py --fasttest
ends up with this error message:


========================================
 Running tests for bok-choy 
========================================
/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/_pytest/mark/structures.py:284: DeprecationWarning: The `convert` argument is deprecated in favor of `converter`.  It will be removed after 2019/01.
  _marks = attr.ib(convert=list)
======================= test session starts =======================
platform linux2 -- Python 2.7.12, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /edx/app/edxapp/venvs/edxapp/bin/python
cachedir: .pytest_cache
Using --randomly-seed=1548748042
Django settings: lms.envs.test (from ini file)
rootdir: /edx/app/edxapp/edx-platform, inifile: setup.cfg
plugins: xdist-1.22.2, randomly-1.2.3, forked-0.2, django-3.1.2, cov-2.5.1, attrib-0.1.3

------------ generated xml file: /edx/app/edxapp/edx-platform/reports/bok_choy/xunit.xml ------------
======================= no tests ran in 0.03 seconds =======================
ERROR: file not found: /edx/app/edxapp/edx-platform/common/test/acceptance/tests/acceptance/tests/video/test_video_module.py


Cleaning up after bok-choy
Cleaning up databases...
./manage.py lms --settings bok_choy_docker flush --traceback --noinput
---> pavelib.utils.test.bokchoy_utils.clear_mongo
mongo --host edx.devstack.mongo test --eval 'db.dropDatabase()' > /dev/null


================================================
Tests failed in the following suites:
* bok-choy


can you help me with this?

Jeremy Bowman

unread,
Feb 1, 2019, 9:57:32 AM2/1/19
to edx-...@googlegroups.com
The command you want would be:

paver test_bokchoy -t video/test_video_module.py --fasttest


Notice the test file location is relative to common/test/acceptance/tests.

--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/CABCzmJKrJ-qG%3D9u96p9EXOh7FYnXO7TW5FHbybN1PDUxov_6Lw%40mail.gmail.com.


--
Jeremy Bowman
Manager of Dev Tools
edX
141 Portland St.
Cambridge, MA 02139
Reply all
Reply to author
Forward
0 new messages