javaprogram-entry-pointjunit5suite

junit5 how run all classes in test folder?


enter image description here

How i run all Test Class in src/test/java/* from Executor?

package it.anas.testSuite;

import org.junit.runner.JUnitCore;

public class Executor {

    public static void main(String[] args) {
        JUnitCore.main("./src/test/java/SmartRoadSimulator");
    }

}

Thanks Regards


Solution

  • Right click on your project and run as -> junit this will run the all test class files in your src/test/java