Skip to content

Commit

Permalink
- inital Main implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kcrimson committed May 16, 2010
1 parent 3b684e6 commit 3e42d32
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion jtk-core/src/main/java/org/testdriven/jtk/Main.java
Expand Up @@ -5,6 +5,15 @@ public final class Main {
/**
* Main application entry point
*/
public static void main(final String[] args) {
public static void main(final String[] args) throws Exception{
JTKCommandParser parser = new JTKCommandParser(args);
JTKCommandOptions options = parser.parse();

JTK jtk = new JTK(options.getSources()[0],options.getClasses()[0]);
TestCaseAnalyzer analyzer = jtk.createTestCaseAnalyzer();
AnalyzerResults results = analyzer.analyzeTestCases();

AnalyzerResultsPrinter printer = new AnalyzerResultsPrinter(System.out);
printer.writeSummary(results);
}
}

0 comments on commit 3e42d32

Please sign in to comment.