Giter Site home page Giter Site logo

tagcompare's Introduction

Circle CI Code Climate Coverage Status Issue Count

╔╦╗╔═╗╔═╗  ╔═╗╔═╗╔╦╗╔═╗╔═╗╦═╗╔═╗
 ║ ╠═╣║ ╦  ║  ║ ║║║║╠═╝╠═╣╠╦╝║╣ 
 ╩ ╩ ╩╚═╝  ╚═╝╚═╝╩ ╩╩  ╩ ╩╩╚═╚═╝

There are many differences and issues when trying to render an HTML5 creative under different platform/browsers.

  1. Fonts might look or be different
  2. CSS / layout differences
  3. Animation / timing differences

This tool tries to address the first 2 points above by doing image comparison of an HTML5 creative tag under different platform/browser configurations

Setup

Clone the repo: git clone [email protected]:paperg/tagcompare.git python setup.py install to install it. which tagcompare should show that it's installed

(optional): install phantomjs brew install phantomjs

settings.json

Make a local copy of settings.json called settings.local.json Update all the null values for saucelabs and placelocal:

  "saucelabs": {
    "user": null,
    "key": null
  },
  "placelocal": {
    "domain": "www.placelocaldemo.com",
    "secret": {
      "pl-secret": null,
      "pl-service-identifier": null
    }
  }

Update the settings.local.json file with the desired input to the tool as desired

Running the tool

tagcompare is the main entry point for the tool, it will capture and compare tags with the given input in your settings.local.json

Commandline arguments:

Commandline arguments can optionally be used to configure the tagcompare run. tagcompare --help will show the current list of supported options.

Note:Options passed through the commandline will override the settings.local.json

Outputs:

Outputs generated by the tool will be stored in /~/tagcompare

Running tests

make test or tox runs unit tests make test-all runs all the tests ./test <path_to_test> runs tests from a specific test file

tagcompare's People

Contributors

d3ming avatar andrewgu avatar

Forkers

makethunder

tagcompare's Issues

Make compares against 'golden' image better

'golden' is currently a regular config, which causes an extra capture run

We should ideally be able to not capture for golden, but have compare still work against it. Could do something like:

  • Make 'golden' config enabled for compare but disabled for capture
  • Have aggregate copy the 'chrome' config results to golden

Restructure output

Restructure the output of the tool to:

output (main output dir):

  • campaign (a directory for each campaign):
    • size (a directory for each size):
      • tag.html
      • chrome.png
      • firefox.png
      • ie9.png
      • comparison.png

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.