Open bowemi opened 1 month ago
I'm releasing a new ui test version this week. We can then write a custom //@run
flag to handle this correctly
Another option is to update java_wrapper to take in additional parameters as well as run javac + java. Then java_wrapper could use the file annotations to determine whether javac + java is used or just javac
https://github.com/duchess-rs/duchess/blob/main/test-crates/duchess-java-tests/tests/ui.rs#L131
Right now if you annotate a java-to-rust test with
//@check-pass
it also runs and if you annotate with//@run
, it errorsCurrently build.rs compiles all java code with javac then the java-to-rust tests are run with java via the java_wrapper
By having the java compilation separate from the java run, ui_test features that expect compilation success or failure don't work as expected.