New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Successful tests marked as "terminated" in IntelliJ #94
Comments
My SOME_TABLE.sql definition looks like:
|
Where is the test failure in the above log? I don't see any output from JUnit indicating the test failed? Do you get some feedback in the IDE or somewhere else that says this? |
Hi, there's a clear green check mark on pass but not sure what that symbol is. I will take a screenshot of a passing test. If you missed it look at the top left. Tests passed 0 of 1 test. I will try to give more details and run through the debugger and see if I can figure out anything else. |
A separate project to reproduce would be nice.
I'm a bit confused, I thought the original issue you raised was that the
assertions pass, i.e. your tests pass but that HiveRunner wasn't indicating
that the tests pass. The above screenshot seems to indicate that all the
tests are passing so this is good isn't it?
…On 25 July 2018 at 16:26, colin-williams ***@***.***> wrote:
Here's examples of the tests passing. I'm going to create a project which
reproduces the failures so it's easy to reproduce on clone.
[image: pass]
<https://user-images.githubusercontent.com/28717206/43210544-434c4f0e-8fe4-11e8-834e-58a048ba2db5.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABzEbXojJB6dMSAga4Ht966draS-DESks5uKI4WgaJpZM4VblrZ>
.
|
I took a screenshot of passing tests from a different example to juxtaposition the differences between a passing test and my issue. I tried to reproduce but there's some subtle issue I am having problems with. Then I will update when I can reproduce or if I can find the issue. |
OK, good luck tracking it down!
…On 25 July 2018 at 17:29, colin-williams ***@***.***> wrote:
I took a screenshot of passing tests from a different example to
juxtaposition the differences between a passing test and my issue. I tried
to reproduce but there's some subtle issue I am having problems with. Then
I will update when I can reproduce or if I can find the issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABzEYUvOp8aVJXgBJIEE9VgZJX2XJUfks5uKJzagaJpZM4VblrZ>
.
|
Posting from one of our engineers: Could perhaps be other issues but what I have identified is that when there is any set statement in a hive sql we get this behaviour. Have debugged the code all the way down to the nitty-gritty in the hive code and can see that the set works as expected without throwing any errors as far as I could tell. Can also see that hiverunner notifies IntelliJ that the test has finished and without reporting any failures. Of course I must be missing something somewhere but no solution in sight so far. Get the same behaviour when running tests in the hiverunner project from github for example: The good news is I found the commit in hiverunner where this behaviour started: The bad news is that the commit contain 79 changed files and it is the commit where hive.version was bumped from 1.2.1 to 2.3.3. Behaviour appear when moving from 1.2.2 to 2.0.0 |
Any resolution on this issue? I have the same behaviour using IJ, but it works fine in Eclipse. |
Can you compare the IJ and Eclipse classpaths? It might be due to some classpath ordering differences. |
@PelleUllberg described the problem very well, I am experiencing the same. Looks like when a Hive query has an explicit "SET" it forces the unit test to exit. ` SET hive.exec.dynamic.partition.mode=nonstrict; SELECT * FROM mytable; This test ^^^ will be interrupted and marked as "Test terminated". If you remove the "SET", it works. As per the IJ Test Runner tab documentation (https://www.jetbrains.com/help/idea/test-runner-tab.html)
I setup a test project on my Github page (https://github.com/labbedaine/HiveRunnerAssertionIssue). If you have a minute, import the project in Eclipse and then IJ and see how it behaves. I will definitely look into the class path and see if I have differences between Eclipse and IJ. Thank you for the follow up! |
@labbedaine @PelleUllberg @colin-williams @philltomlinson Hey everyone, I'm trying to fix this issue and I was wondering if any of you figured anything else that could be useful? Any help is appreciated :) ! |
It looks like the root cause of this is a problem in how IntelliJ mishandles things when the code under test calls Herewith a summary of the events that lead to the problem:
We'll look into adding a workaround for this in HiveRunner as it seems unlikely that it will be fixed in IntelliJ any time soon if they've left the issue open for 7 years. |
Hi,
I'm puzzled why I'm getting Tests passed: 0 but not explicitly failing from my tests when running via Idea.
I made a simple pom and I seem to pass the examples in another project, but my custom tests aren't passing. It seems the assertions are as expected and the tables are created. Then for some reason some part of the test setup or annotations is not passing my tests. Can someone get me back on track?
Thanks
The text was updated successfully, but these errors were encountered: