All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qase.commons.models.report.RunStats Maven / Gradle / Ivy

The newest version!
package io.qase.commons.models.report;


public class RunStats {
    public int passed;
    public int failed;
    public int skipped;
    public int broken;
    public int muted;
    public int total;

    public RunStats() {
        this.passed = 0;
        this.failed = 0;
        this.skipped = 0;
        this.broken = 0;
        this.muted = 0;
        this.total = 0;
    }

    public void track(ShortReportResult result, boolean muted) {
        switch (result.status) {
            case "passed":
                this.passed++;
                break;
            case "failed":
                this.failed++;
                break;
            case "skipped":
                this.skipped++;
                break;
        }

        this.total++;

        if (muted) {
            this.muted++;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy