wswebcreation / protractor-image-comparison

npm-module to compare images with protractor
86 stars 38 forks source link

Refactor protractor-image-comparison process #83

Closed wswebcreation closed 5 years ago

wswebcreation commented 5 years ago

This module is now hard to maintain with all the 🍝 -code, the refactor should optimise the code, make it more readable and better to maintain. This refactor will also remove some dependencies and starts using Canvas for 100%.

The idea is to create at least 2 modules, 1 module that will be the core and exposes an API that can be used by multiple frameworks. The second module will be a Protractor plugin that will use the core module. The core module will be split from protractor-image-comparison when the refactor is done and stored in a separate repo.

Todo:

Methods

Open issues:

All changes can be tracked in this eat/rewrite-3 branch

miguelchico commented 5 years ago

Hi @wswebcreation Nice work here!!

I was wondering if as part of this refactor you have plans to remove node-canvas-prebuilt dependency. That dependency is downloading some prebuilt canvas from github and that's stopping me to use it in my CI environment (where accessing to the internet is restricted for security reasons)

I've seen it's not part of your solution so far in the eat/rewrite-3 branch, but just double checking :)

Thank you!

wswebcreation commented 5 years ago

Hi @miguelchico

Tnx for the feedback, yes, I've already removed the prebuild version and implemented the node-canvas (which now by default holds the prebuild)

miguelchico commented 5 years ago

Hi @wswebcreation Do you have a timeline for this refactor?

I'm so excited that I can't wait!

wswebcreation commented 5 years ago

Hi @miguelchico

I've released a beta of protractor-image-comparion. This is a complete refactor and now supports the latest version of canvas

You can install it with npm install protractor-image-comparison@beta

And find more info here, the config has become much easier, so please check the docs

wswebcreation commented 5 years ago

Version 3.0.1 is out, please try that one and read the release notes carefully.