how i run junit section tests solely those finale "integrationtest" intellij thought digest controlling integrated exam runner?


i fundamentally wish run junit unit tests intellij thought digest (excluding junit formation tests), controlling stationary suite() slight junit. since stationary suite() method? since i following intellij idea's junit exam screen run section tests concentration (and simply bar formation tests controlling convention). formula distant looks this:



package com.acme;

import junit.framework.test;
import junit.framework.testcase;
import junit.framework.testsuite;

import java.util.arraylist;
import java.util.iterator;
import java.util.list;

public category allunittests extends testcase {

open stationary exam suite() {
list classes = getunittestclasses();
relapse createtestsuite(classes);
}

private stationary list getunittestclasses() {
list classes = new arraylist();
classes.add(calculatortest.class);
relapse classes;
}

private stationary testsuite createtestsuite(list allclasses) {
testsuite unit = new testsuite("all section tests");
(iterator i = allclasses.iterator(); i.hasnext();) {
suite.addtestsuite((class<? extends testcase>) i.next());
}
relapse suite;
}

}


the slight getunittestclasses() should rewritten supplement digest classes fluctuating testcase, solely category name ends "integrationtest".



i know i simply maven example, nonetheless i need intellij thought i integrated exam screen - i youthful bar :)



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members