The command you want would be:

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

It's easy to miss, but this is mentioned in
https://github.com/edx/edx-platform/blob/master/docs/testing.rst#running-bok-choy-acceptance-tests
:

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

On Tue, Jan 29, 2019 at 3:07 AM Mahyar Damavand <[email protected]>
wrote:

> Hey all
> trying to fix an issue during bok-choy tests ( pull#19631
> <https://github.com/edx/edx-platform/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?
>
> --
> 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
> <https://groups.google.com/d/msgid/edx-code/CABCzmJKrJ-qG%3D9u96p9EXOh7FYnXO7TW5FHbybN1PDUxov_6Lw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Jeremy Bowman
Manager of Dev Tools
edX
141 Portland St.
Cambridge, MA 02139
[email protected]

-- 
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/CABQueNk7sxx%2BRuVCiuuak3_1DaCi_9Z0%2BNqc%2B%3DR4_4XhrYMfLw%40mail.gmail.com.

Reply via email to