visual-regression-tracker / sdk-js Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Read file vrt.json from project root with structure:
{
"apiUrl": "http://162.243.161.172:4200",
"project": "VRT",
"apiKey": "SECRET",
"branchName": "master",
"enableSoftAssert": false,
"ciBuildId": "SOME_UNIQUE_ID"
}
env variables example:
VRT_APIURL="http://localhost:4200"
VRT_PROJECT="Default project"
VRT_APIKEY="tXZVHX0EA4YQM1MGDD"
VRT_CIBUILDID="commit_sha"
VRT_BRANCHNAME="develop"
VRT_ENABLESOFTASSERT=true
Acceptance criteria:
New field was added ins cope of Visual-Regression-Tracker/Visual-Regression-Tracker#142 and will be used as a glue to build in CI
Create build payload
{
"ciBuildId": "string",
"branchName": "string",
"project": "string"
}
TODO:
ciBuildId
into config objectWe have a VRT backend deployed. However it requires Authorization
header for access in order not to be publicly accessible for anyone.
Add optional "authHeader" setting / VRT_AUTH_HEADER
env variable. If present, its value can be added to the AxiosRequestConfig as Authorization
header to ensure it is sent with all requests to the backend.
This allows the backend not to be publicly available. It provides support for any Authorization type since the full value of the header is provided from the config.
New property is added ignoreAreas
into request payload and could be processed by server side: Visual-Regression-Tracker/Visual-Regression-Tracker#132
Add ability to pass it as parameter into track
method to ignore some parts of image
class IgnoreArea {
x: number;
y: number;
width: number;
readonly height: number;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.