Run the main method of org.apache.calcite.test.CoreQuidemTest (or one of the other sub-classes of QuidemTest) and pass the path of the script (e.g. “sql/agg.iq”) as the argument.
You can also run CoreQuidemTest as a Junit test. It is parameterized, and generates a list of all .iq files (e.g. sql/agg.iq sql/blank.iq etc.) as its parameters. Thus it will run all quidem tests in that module. If Quidem fails, it displays a diff to stdout, and also leaves an output file core/target/test-classes/sql/surefire/sql/agg.iq with which you can overwrite (if you choose) the original script file core/src/test/resources/sql/agg.iq. Julian > On Jan 30, 2019, at 5:42 PM, Vineet Garg <[email protected]> wrote: > > Hello all, > > How do I run a particular (e.g. sql/dummy.iq) test (with debug mode on)? > > I have run these tests in the past but I can’t seem to recall how did I > manage to run it. > > Thanks, > Vineet G
