Giter Site home page Giter Site logo

cuteci's Introduction

CuteCI

CuteCI (cute-sy) is a Continous Integration framework for tracking visual changes in Qt5 QWidget applications.

It consists of two main components:

  • The library (libcuteci)
  • A diff tool (cuteci-diff)

Library

libcuteci is used to acquire screenshots of your application for later comparison and integrates easily with your codebase.

Integration is as easy as including CuteCI.h and initializing it (somewhere after the creation of QApplication):

#include <CuteCI.h>

// ...

int main(int argc, char** argv) {
  QApplication app(argc, argv);

  QMainWindow win;

  CUTECI_INIT(&win, CUTECI_DEFAULT_FLAGS);

  // ...

  return app.exec();
}

When CuteCI is not enabled by defining CUTECI the CUTECI_INIT instruction will just do nothing, no additional if-guarding required!

When using CuteCI with CUTECI_DEFAULT_FLAGS it will stay in the background and take screenshots of all widgets in your application and then safely close it after a set amount of time.

Additionally you can create named screenshots by using CUTECI_RENDER:

#include <CuteCI.h>

// ...
void MyCustomWidget::CreateComponents()
{
  // ...
  m_button = new QPushButton("Hello World!"));
  // ...
  layout->addWidget(m_button);
  // ...

  CUTECI_RENDER(m_button, "Important_Button");
}

Diff Tool

cuteci-diff is used to generate reports based on the information gathered from libcuteci. It can both generate a short summary for the terminal as well as a fancy HTML report! The diff tool is intentionally minimalistic to further help integration with your existing CI solutions.

Usage

cuteci-diff [summary/html] [folderA] [folderB]

Requirements

  • A C++14 compatible compiler
    • Note: Your application does not have to be built in C++14. It's only a requirement for the library itself and the diff tool
  • CMake 3.1 or newer
  • Qt 5

License

CuteCI is licensed under the GNU General Public License v3 or any later version at your option.

See LICENSE.txt for more detailed information.

cuteci's People

Contributors

spycrab avatar

Watchers

 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.