Jython Coverage

I am trying to use Jython instead of Python for a project (I need a jdbc driver for some kind of rare database). Everything is working fine so far, but I can not find any good tools to cover the code. Anyone have a solution?

A similar work by Google seems to indicate that on jython some things are missing that are needed to cover the code. http://nedbatchelder.com/blog/201005/coveragepy_on_jython.html

How do others solve this problem? I suppose something like jpype along with regular python would be a way forward, but I would rather not introduce jpype into my environment just for coverage measurements.

+3
source share
2 answers

In the blog post that you specify, you can run a “coverage run” under Jython, and then an “html coverage” under CPython. Have you tried this? This should give reasonable results.

+1
source

How do others solve this problem?

Your question is fundamentally "how can I get tools for languages ​​that don’t have built-in tool support?" The hypermodern langauges programming solution is to try to build all the necessary support in specific langauge implementations (reflection, profiling, metaprogramming, ...). While its a good idea, the amount of engineering solutions needed for this is huge, and ... often does not (testify about your problem with Jython).

- ( ) , . , , - . - , .

DMS Software Reengineering Toolkit - -, , , langauge. DMS (C, ++, #, COBOL, Java, PHP,...), Python, , "" langauge ( , Jython Python).

, -, DMS, langauges. , . (, , Python - ).

+1
source

Source: https://habr.com/ru/post/1768899/


All Articles