Giter Site home page Giter Site logo

imskr / iris_firefox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla/iris_firefox

0.0 2.0 0.0 121.1 MB

Test Suite for Firefox using Mozilla Iris

License: Mozilla Public License 2.0

Shell 1.03% Python 44.09% HTML 45.63% JavaScript 1.53% CSS 0.22% PHP 7.50%

iris_firefox's Introduction

iris_firefox

Travis (.com) GitHub GitHub repo size GitHub issues

Iris Firefox is a suite of tests specific to Firefox, using the Mozilla Iris test framework.

For more detailed information and troubleshooting tips, please view our wiki.

Installation

Mac instructions:

System Requirements

Setup

git clone https://github.com/mozilla/iris_firefox
# Run the Mac bootstrap script
cd iris
./bootstrap/bootstrap.sh
# Run this command to agree to xcode terms of service
sudo xcodebuild -license accept
  • Restart your Mac in order for certain libraries to be recognized
  • In System Preferences, go to Mission Control and change the keyboard shortcut for "Application Windows" to "-", or none
  • Launch Iris
cd iris_firefox
pipenv install
pipenv shell
iris firefox

Windows 7 / Windows 10 Professional instructions:

Setup

git clone https://github.com/mozilla/iris_firefox
cd iris_firefox
bootstrap\bootstrap.sh
# Install project requirements and activate the virtualenv
pipenv install
pipenv shell
# Run Iris
iris firefox

Ubuntu Linux instructions:

System Requirements

Setup

git clone https://github.com/mozilla/iris_firefox
cd iris_firefox
./bootstrap/bootstrap.sh
# Note: This will take around 10 minutes to download, compile, and install dependencies
# Run the following commands to complete installation and launch Iris
pipenv install
pipenv shell
iris firefox

Usage

For examples of using Iris Firefox, see our wiki and documentation.

Contributing

To contribute to the Iris Firefox project, more details are available on our wiki.

Enable Pre-Commit Hooks

Iris has pre-commit hooks for flake8 linting and black code formatting. These hooks will run black and flake8 prior to committing your changes.

This means that black will format all python files in-place, and flake8 will lint your code for any errors. If there are flake8 violations, your changes will not be committed. The list of ignored rules is documented in the tox.ini file. There should be a compelling reason to do so before adding to this list.

If you already have iris installed on your system prior to this patch, you will need to run pipenv install again to install the pre-commit module.

# Install dependencies, including pre-commit
pipenv install
# Install pre-commit hooks defined in .pre-commit-config.yaml
pre-commit install

That's it! Here's an example of how it works:

# make some changes
git add -A
git commit -m 'detailed commit message'
[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /Users/ksereduck/.cache/pre-commit/patch1570121459.
black....................................................................Passed
Flake8...................................................................Failed
hookid: flake8

targets/firefox/bug_manager.py:11:1: E402 module level import not at top of file
targets/firefox/bug_manager.py:12:1: E402 module level import not at top of file
targets/firefox/bug_manager.py:14:1: E402 module level import not at top of file
targets/firefox/bug_manager.py:15:1: E402 module level import not at top of file
targets/firefox/bug_manager.py:16:1: E402 module level import not at top of file

[INFO] Restored changes from /Users/ksereduck/.cache/pre-commit/patch1570121459.

iris_firefox's People

Contributors

spronoza avatar tracy-walker avatar pavelciapa avatar ionutbudeanu avatar dbakaev avatar nevdokimov avatar silviuflorin avatar yeyartsev avatar mariusandreifilip avatar alinrus avatar paulprokhorovmoz avatar andreih avatar rrobotin avatar echim avatar paulprokhorov avatar dmitrybakaev avatar hathibelagal-dev avatar kimberlythegeek avatar icrisan avatar kriskristin avatar poush avatar imskr avatar kwierso avatar

Watchers

James Cloos avatar  avatar

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.