-
Notifications
You must be signed in to change notification settings - Fork 197
Testing updates #1268
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
base: master
Are you sure you want to change the base?
Testing updates #1268
Conversation
… do not call startJVM in JPypeTestCase.setUp, but in a pytest fixture for the session scope.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1268 +/- ##
==========================================
+ Coverage 86.87% 87.09% +0.22%
==========================================
Files 113 113
Lines 10336 10356 +20
Branches 4065 4064 -1
==========================================
+ Hits 8979 9020 +41
+ Misses 761 741 -20
+ Partials 596 595 -1
🚀 New features to boost your workflow:
|
|
I see you are working on one of those maintenance tasks. Which release are you targeting this for? We currently have three largish changes in the pipeline.
Not sure how long it will take to integrate it all but that does mean fairly substantial changes in the repo. You may want to not hold a maintenance PR too long in queue or it risks conflicts with the others. Additionally, in order to test the reverse bridge I will need to push it into a branch on the main project as the release pipeline can only be triggered there. I will remove the branch once it is complete. The merge will happen as a regular PR. |
|
We could also post pone this one in favor of the important changes. I can tidy up things later and do not want to interfere with the integration of the the main features. |
|
I hate to lose work that you put in. I gave this a look over. There were two problems when I ran it locally that would need to be addressed. The assertion on the harness built is okay. But getting hundreds of failed tests on the same failed assertion is not very useful. I changed that to pytest.exit(). Running from a raw checkout shows that we have three actions before a pytest will run.
I believe all these things happen in our azure scripts, but a local user won't get those. Next up, the one of the changes to subrun is definitely bad for me locally. It appears that subrun now tries to start the JVM. But many of the tests are built around the JVM not having been started. At least locally that caused every subrun test to fail on me. Not sure why it passes on azure. Reverting the changes fixed my local copy. Also my pyproject.toml gave an error on the license file under Python 3.12. You can see the changes in I required in. https://github.com/Thrameos/jpype/tree/testing_updates Beyond those changes what else is required to merge this in? |
|
|
||
| def testCallWithArray(self): | ||
| h2 = JClass('jpype.attr.Test1')() | ||
| h2 = JClass('org.jpype.test.attr.Test1')() |
Check notice
Code scanning / CodeQL
Unused local variable Note test
|
|
||
| def testCallWithArrayMismatch(self): | ||
| h2 = JClass('jpype.attr.Test1')() | ||
| h2 = JClass('org.jpype.test.attr.Test1')() |
Check notice
Code scanning / CodeQL
Unused local variable Note test
| class MroTestCase(common.JPypeTestCase): | ||
| def testMro(self): | ||
| C = JClass('jpype.mro.C') | ||
| C = JClass('org.jpype.test.mro.C') |
Check notice
Code scanning / CodeQL
Unused local variable Note test
| proxy = JProxy("jpype.proxy.TestInterface1", dict=d) | ||
| proxy = JProxy(["jpype.proxy.TestInterface1"], dict=d) | ||
| proxy = JProxy("org.jpype.test.proxy.TestInterface1", dict=d) | ||
| proxy = JProxy(["org.jpype.test.proxy.TestInterface1"], dict=d) |
Check warning
Code scanning / CodeQL
Variable defined multiple times Warning test
redefined
| proxy = JProxy(["jpype.proxy.TestInterface1"], dict=d) | ||
| proxy = JProxy("org.jpype.test.proxy.TestInterface1", dict=d) | ||
| proxy = JProxy(["org.jpype.test.proxy.TestInterface1"], dict=d) | ||
|
|
Check notice
Code scanning / CodeQL
Unused local variable Note test
| def testMethods(self): | ||
| fixture = JClass("jpype.common.Fixture")() | ||
| fixture = JClass("org.jpype.test.common.Fixture")() | ||
|
|
Check notice
Code scanning / CodeQL
Unused local variable Note test
| def testMethods2(self): | ||
| fixture = JClass("jpype.common.Fixture")() | ||
| fixture = JClass("org.jpype.test.common.Fixture")() | ||
|
|
Check notice
Code scanning / CodeQL
Unused local variable Note test
deals with #827