Search in sources :

Example 6 with CSVReport

use of org.btrplace.safeplace.testing.reporting.CSVReport in project scheduler by btrplace.

the class DSN method fuzzingSizing.

// //@Test
public void fuzzingSizing() throws Exception {
    TestScanner sc = newScanner();
    Path path = Paths.get(root, "fuzz.csv");
    Files.deleteIfExists(path);
    for (int p = 100; p <= 1000; p += 100) {
        for (int s = 2; s <= 20; s += 2) {
            System.out.println("--- Population: " + p + " scale: " + s + " ---");
            Bench.report = new CSVReport(path, Integer.toString(p));
            Bench.population = p;
            Bench.scale = s;
            List<TestCampaign> campaigns = sc.testGroups("sides");
            if (campaigns.isEmpty()) {
                Assert.fail("Nothing to test");
            }
            campaigns.stream().forEach(c -> System.out.println(c.go().toString()));
        }
    }
}
Also used : Path(java.nio.file.Path) TestScanner(org.btrplace.safeplace.testing.TestScanner) CSVReport(org.btrplace.safeplace.testing.reporting.CSVReport) TestCampaign(org.btrplace.safeplace.testing.TestCampaign) Constraint(org.btrplace.safeplace.spec.Constraint)

Aggregations

Path (java.nio.file.Path)6 TestScanner (org.btrplace.safeplace.testing.TestScanner)6 CSVReport (org.btrplace.safeplace.testing.reporting.CSVReport)6 Bench (org.btrplace.safeplace.testing.Bench)3 Constraint (org.btrplace.safeplace.spec.Constraint)2 TestCampaign (org.btrplace.safeplace.testing.TestCampaign)1 Restriction (org.btrplace.safeplace.testing.fuzzer.Restriction)1 Verifier (org.btrplace.safeplace.testing.verification.Verifier)1 CheckerVerifier (org.btrplace.safeplace.testing.verification.btrplace.CheckerVerifier)1 SpecVerifier (org.btrplace.safeplace.testing.verification.spec.SpecVerifier)1