File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import entity .ClassEntity ;
22
3+ import java .io .File ;
34import java .io .IOException ;
45import java .nio .file .Path ;
56import java .util .List ;
67
78
89public class Main {
910 public static void main (String [] args ) throws IOException {
10- final String rootDirectory = "C:\\ Projects\\ TestSmells_ExisitngTools\\ samples\\ bad" ;
11+ if (args == null ) {
12+ System .out .println ("Please provide the path to the project directory" );
13+ return ;
14+ }
15+ if (!args [0 ].isEmpty ()){
16+ File inputFile = new File (args [0 ]);
17+ if (!inputFile .exists () || !inputFile .isDirectory ()) {
18+ System .out .println ("Please provide a valid path to the project directory" );
19+ return ;
20+ }
21+ }
22+ final String rootDirectory = args [0 ];
1123 TestFileDetector testFileDetector = TestFileDetector .createTestFileDetector ();
1224 ResultsWriter resultsWriter = ResultsWriter .createResultsWriter ();
1325 ClassEntity classEntity ;
You can’t perform that action at this time.
0 commit comments