nengo-1.4 icon indicating copy to clipboard operation
nengo-1.4 copied to clipboard

Run JUnit tests from Jython

Open tbekolay opened this issue 12 years ago • 3 comments

It'd be a lot easier to write and run unit tests if we could write them in Jython syntax instead of Java. This should be possible, but having it run automatically from the build system is difficult. There are a few articles about it, but it'll still take some work to implement.

tbekolay avatar Oct 26 '12 15:10 tbekolay

So to verify, you would like to be able to write unit tests in Python, instead of Java, as a language? This is probably appropriate for some tests, but not all of them.

codemercenary avatar Dec 21 '12 18:12 codemercenary

Yeah; well, really, we should probably split things up such that we have tests of the Java code written in Java and tests of the Python API in Python. It's just the preference of most of the lab to write in Python, so writing unit tests with Jython would mean you can do Java unit tests with Python syntax, but yeah, with the JUnit4 switch writing Java tests should be easier anyhow.

tbekolay avatar Dec 23 '12 20:12 tbekolay

There should be a well-defined Java API, too. Currently the only thing I see is the Javadoc; the python documentation is concise and focused by comparison, the Javadocs are all over the place.

Perhaps we can start with a high-level description of purpose for the Java code?

codemercenary avatar Dec 26 '12 21:12 codemercenary