Git Product home page Git Product logo

cui's Introduction

CUI (Candidate User Interface)

Build Status

This is Codility's candidate interface. It's provided as a Django application ready for stand-alone development.

Installation

Install Python packages (from requirements.txt):

pip install -r requirements.txt

Install Ruby packages (from Gemfile):

gem install bundler
bundle install

For running the tests with Selenium, you need Xvfb and Firefox.

Under Ubuntu, you can install them using:

sudo apt-get install xvfb firefox

Running

You can run CUI using a standard Django development server:

python manage.py runserver localhost:8001

Run the unit tests (using Selenium):

python manage.py test

Run the unit tests (in your browser):

http://localhost:8001/test/

Run against a mock in-browser server:

http://localhost:8001/local/

To see browser while running selenium tests you have to set SHOW_SELENIUM environment variable.

If you would like to use driver other than Firefox for selenium tests you can use selenium remove web driver and specify remote address by REMOTE_SELENIUM environment variable. For example running tests using PhantomJS:

phantomjs --webdriver=22222 < /dev/null > /dev/null &
REMOTE_SELENIUM="http://localhost:22222" python manage.py test

Sometimes you might want to run only some tests not all. When you test under browser it's rather easy, just specify spec get attribute and it will work as filter for spec for example http://localhost:8001/test/?spec=plugins will run only tests containing "plugins" in their full name.

To achieve same behavior from terminal using selenium tests you can specify JASMINE_SPEC environment variable.

JASMINE_SPEC="plugins" python manage.py test

License

CUI is distributed under the terms of GNU Lesser General Public License version 3 (LGPLv3). See files COPYING and COPYING.LESSER for details.

Contact

By e-mail:

By phone:

+44-208-970-78-68
+1-855-888-5880

By postal mail:

Codility Polska
Długa 44/50
Poddasze A
00-241 Warszawa
Poland

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.