DEPRECATED - Test Suite for Firefox using Mozilla Iris
Перейти к файлу
Ranjit Kumar b2fd8405c7 Applying this patch will fix the following test cases:
drop_jpeg_image.py
drop_jpeg_image_in_private_window.py
drop_pdf_file.py
drop_pdf_file_in_private_window.py
drop_png_image.py
drop_png_image_in_private_window.py
drop_txt_file.py
drop_txt_file_in_private_window.py
2020-01-31 10:10:04 -06:00
archive Archive ci and unit tests 2019-12-09 14:07:18 -06:00
bootstrap Added coverage of Issue 4131 (#4134) 2019-10-30 16:22:31 +02:00
targets Applying this patch will fix "library_controls.py". Changes Log: 2020-01-28 13:56:49 -06:00
tests Applying this patch will fix the following test cases: 2020-01-31 10:10:04 -06:00
tools remove black and restore code 2019-11-26 13:14:09 -06:00
.gitignore Add docs/ to gitignore 2020-01-14 15:55:54 -06:00
.travis.yml Weekly merge of core Iris into iris_firefox 2019-07-19 18:41:27 -05:00
CODE_OF_CONDUCT.md Cleaning repo of all Iris 1.0 files 2019-06-07 09:38:20 -07:00
LICENSE Adding Iris 2.0 files to repo 2019-06-07 11:06:17 -07:00
Pipfile Bump core package version to 0.8.5 2020-01-09 12:25:58 -06:00
README.md Update README for contributors, workflow 2019-10-08 11:50:20 -05:00
config.ini Fixed a typo in the TestRail section (missing comma) in the config.ini (#3702) 2019-08-21 13:46:43 +03:00
setup.py * added pre commit hooks for flake8 and black 2019-10-02 10:26:04 -06:00
tox.ini install flake8 in tox file instead of separate file, delete /test/ directory 2019-11-14 09:48:10 -07:00

README.md

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.