Hi Gerhard, It seems I spoke too soon then and it currently isn't possible, it would be a great feature though so I created a ticket [1]. We should allow adding a custom text in that field and then populate the dropdown based on the test available in the project.
Cheers, Hans [1] https://issues.apache.org/jira/browse/HOP-4135 On Fri, 12 Aug 2022 at 12:12, MITTERLECHNER Gerhard < [email protected]> wrote: > Hi Hans! > > > > Thanks a lot for your fast feedback. > > > > I do not observe that I could fill in a custom value there. > > If I do so, the next time I open up the dialog, again the previous valid > value is set. > > > > > > Furthermore, if I try to change the setting directly in the corresponding > metadata JSON file (by entering a custom string – e.g. “BLABLA” as value > for attribute “test_type”), an error pops up when trying to open the > metadata object (after reloading the project): > > > > “ > > HopException: Errror loading metadata object… from file … > > > > Unable to load JSON object > > > > Error loading fields for object class > org.apache.hop.testing.PipelineUnitTest > > No enum constant org.apache.hop.testing.TestType.BLABLA > > > > Root cause: IllegalArgumentException: No enum constant > org.apache.hop.testing.TestType.BLABLA > > “ > > > > > > Indeed, in the source code, it seems that the two types “UNIT_TEST” and > “DEVELOPMENT” are hard coded ENUM values in file “TestType.java”: > > “public enum TestType { > > DEVELOPMENT, > > UNIT_TEST; > > } > > “ > > > > Best regards, > > Gerhard > > > > > > *Von:* Hans Van Akelyen <[email protected]> > *Gesendet:* Dienstag, 9. August 2022 10:47 > *An:* [email protected] > *Betreff:* [EXTERN]Re: Difference between "Unit test" and "Development" > in "Type of test" dropdown in "Create and add data sets" dialog > > > > Sie erhalten nicht oft eine E-Mail von [email protected]. Erfahren > Sie, warum dies wichtig ist > <https://aka.ms/LearnAboutSenderIdentification> > > Hi Gerhard, > > > > The "Type of test" is just a label. There is no functional difference, you > can even fill in a custom value. > > When using the "Execute Unit Tests" transform you can however use this > label to filter which types of tests should be run. > > > > Kr, > > Hans > > > > On Tue, 9 Aug 2022 at 10:41, MITTERLECHNER Gerhard < > [email protected]> wrote: > > Hi all! > > I have a specific question about the "type of test" in the dialog for > creating data sets > (see the table under "CREATE AN ADD DATA SETS" in > https://hop.apache.org/manual/latest/pipeline/pipeline-unit-testing.html#_run_the_unit_test > <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhop.apache.org%2Fmanual%2Flatest%2Fpipeline%2Fpipeline-unit-testing.html%23_run_the_unit_test&data=05%7C01%7Cgmitterlechner%40eurofunk.com%7Ca2a58d24cfb9458cbaba08da79e3d68d%7C6d4fa94918de4214a28c3e8c7fa9c25b%7C0%7C0%7C637956316710387039%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=TRwZiymu258xF02FdB1AAQr7214KT%2B0rXL2uRhsd61Q%3D&reserved=0> > ): > > What is the difference between "Unit test" and "Development"? > > Many thanks in advance, > best regards, > Gerhard Mitterlechner > > > > Email secured by Check Point >
