If its large project consisting of many poms first you can build the individual project or run the individual project from intellij ,if you do maven/gradle build from intellij it will be giving an option in advanced configurations to run with test cases,you can check once by either building the individual module with test cases or running the module with test cases