Giter Site home page Giter Site logo

Comments (6)

timgraham avatar timgraham commented on May 23, 2024

I guess it's not clear that much of the documentation at https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/ is relevant.

from django-box.

olivierdalang avatar olivierdalang commented on May 23, 2024

Indeed that helps a lot.

It seems selenium tests are skipped, is this normal ? How can I include them ? (I try to work on PR django/django#6818 which include a selenium test).

from django-box.

timgraham avatar timgraham commented on May 23, 2024

The linked document has a section "Running the Selenium tests".

from django-box.

olivierdalang avatar olivierdalang commented on May 23, 2024

Oops I missed it, I was expecting tox to run all the tests, just as jenkins does on github.

Still, I don't think the command ./runtests.py --selenium=firefox,chrome can work out of the box on the django-box.

I tried runtests35-postgres --selenium=firefox admin_inlines I get `

ERROR: setUpClass (admin_inlines.tests.SeleniumTests)
(...)
RuntimeError: Could not find firefox in your system PATH. Please specify the firefox binary location or install firefox

Am I doing it wrong or are selenium tests not supported on django-box yet ?

from django-box.

timgraham avatar timgraham commented on May 23, 2024

I guess if you can't run firefox from the command line, then it's not installed.

from django-box.

jarshwah avatar jarshwah commented on May 23, 2024

That's correct, only the chrome driver is currently installed into the vagrant image. I think linking to the testing docs Tim provided in the README might be a good way to go. As well as offering some examples of running the tests from within vagrant (using keepdb and selenium flags, targeting specific test packages, etc).

from django-box.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.