arocnies
09/24/2020, 5:07 AMilya.chernikov
09/28/2020, 8:17 AMpackage
directive is supported in the scripts too.arocnies
09/28/2020, 1:06 PMpackage
declaration I was able to set the package within a script.
Originally I was trying to set a default package to scripts I loaded which didn't have a package declaration--I didn't figure that out but I discovered I was going about it all wrong. I'm working on supporting kts scripts for Cucumber tests. Initially I was hooking into the existing Cucumber Java8 provider that uses reflection to find all of the implementing classes under a list of packages. Although I was able to get kts scripts working this way by manipulating the class loader hierarchy, the real solution for my case is to implement the class service provider that Cucumber provides.