sandynz commented on issue #15703: URL: https://github.com/apache/shardingsphere/issues/15703#issuecomment-1086887776
Hi @everly-gif , Suppose your unit test class name is `ReflectionUtilTest`. > Could you let me know if Im going in the right direction? The unit test is OK. You could create a new class (e.g. `ReflectionFixture.java`) that's dedicated for `ReflectionUtilTest`, add fields and methods that you need. It could be easier to do unit test. > I am aware on how to build the entire project but I want to just run the tests in this file to check. You could run `ReflectionUtilTest` on IDE, right click mouse and select `Run ReflectionUtilTest` on context menu (Intellij IDEA for example), refer to [Run tests]( https://www.jetbrains.com/help/idea/performing-tests.html ) for more details. And also you could run `ReflectionUtilTest` via Maven on Shell, with `-Dtest="xxx.ReflectionUtilTest"` option, refer to [Running a Single Test]( https://maven.apache.org/plugins-archives/maven-surefire-plugin-2.12.4/examples/single-test.html ) for more details. Try any of them, run on IDE should be more convinient. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
