Sha256: a18cb9b99ecb5fc75b8d71141f38a4773515087bbf95ad18b447b4949afe571e

Contents?: true

Size: 1.19 KB

Versions: 4

Compression:

Stored size: 1.19 KB

Contents

#ifndef JHW_REPORT_FILE_OUTPUT
#define JHW_REPORT_FILE_OUTPUT

#include <QObject>
#include <iostream>
#include <QStack>
#include <sstream>

using namespace std;

class ReportFileOutput : public QObject {
  public:
    ReportFileOutput();

    void passed(const QString &specDetail);
    void failed(const QString &specDetail);
    void errorLog(const QString &msg, int lineNumber, const QString &sourceID);
    void internalLog(const QString &note, const QString &msg);
    void consoleLog(const QString &msg);
    void logSpecFilename(const QString &name);
    void logSpecResult(const QString &result);

    void reportFailure(const QString &totalTests, const QString &failedTests, const QString &duration);
    void reportSuccess(const QString &totalTests, const QString &failedTests, const QString &duration);
    void reportSuccessWithJSErrors(const QString &totalTests, const QString &failedTests, const QString &duration);

    void reset();

    stringstream *buffer;
    stringstream *outputIO;
    QStack<QString> successes;
    QStack<QString> failures;
  private:
    void reportTotals(const QString &totalTests, const QString &failedTests, const QString &duration, bool hasJavaScriptError);
};

#endif

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jasmine-headless-webkit-0.7.3.1 ext/jasmine-webkit-specrunner/ReportFileOutput.h
jasmine-headless-webkit-0.7.2 ext/jasmine-webkit-specrunner/ReportFileOutput.h
jasmine-headless-webkit-0.7.1 ext/jasmine-webkit-specrunner/ReportFileOutput.h
jasmine-headless-webkit-0.7.0 ext/jasmine-webkit-specrunner/ReportFileOutput.h