Closed huaxingao closed 1 week ago
So strange, do you know why it aborts instead of fails?
Can you fix the pr description like <component>: <short description>
?
So strange, do you know why it aborts instead of fails?
I think the purpose of assumeThat
is to determine whether the conditions are suitable for a test to continue. If an assumption fails (e.g., if the file format is not parquet), JUnit will skip the execution of the test case and mark it as ignored rather than failing it.
Ah got it, actually wdyt to change it to assertThat?
actually wdyt to change it to assertThat?
In this test suite, the file format could also be ORC or AVRO. We want to ignore this specific test testPosDeletesOnParquetFileWithMultipleRowGroups()
for ORC and AVRO format, that's why we use assumeThat
instead of assertThat
.
Thanks @huaxingao , and @szehon-ho @Fokko @dramaticlly for reviewing the changes
Thanks @amogh-jahagirdar @szehon-ho @Fokko @dramaticlly
With assertj-core-3.26.3.jar, assumeThat(format).isEqualTo("parquet") is failed and the test is silently aborted.