[x3d-public] X3D Test Coverage -- Applying X3DJSAIL to X3D Resources to compute Test Coverage with AspectJ and Ant. [Job]

John Carlson yottzumm at gmail.com
Sat Feb 9 11:50:18 PST 2019


Looking for AspectJ and Ant specialist.  Reason: want to weave count of times X3DJSAIL methods and constructors were executed.  Report class, method, constructor, parameters and a count.

Related PointCuts:

@Pointcut("execution(public * *(..))")
public void publicMethod() {}


https://stackoverflow.com/questions/17338788/aspectj-pointcut-on-constructor-object

Suggest adding counts to a map for each class with the aspect. Do not need to add counts to classes if the data is stored in the Aspect, just need to dump aspect map when program is done (pointcut for running after main?).  Dump out count = 0 constructors and methods execution after main program is executed.  Keep list of Java classes in main for use in previous pointcut. May use Java reflection API.

As a separate experiment, we will add the counts to a database, SQLite?

Open Source solutions (and non-AspectJ solutions) acceptable.   I don’t want to add a lot of code to X3DJSAIL unless Don Brutzman approves it. Ideally, it should also run as a separate command line tool.

Cost of a pack of beer, or cost of a visit to the massage therapist sent to your paypal account as payment.

Payment made when I successfully run code and get accurate all count = 0 constructors and count = 0 methods for X3D Resources Java test cases (4000 cases I think). May use XML when spot checking success.

Provided test case is HelloWorldProgram.java in x3d/stylesheets/java/examples.  Make sure this runs with ant.  X3D Resources test cases found in www.web3d.org/x3d/content/examples on sourceforge.net,   Create 2 cases in ant build.xml, one for HelloWorld and one for X3D Resources Java test cases (converted from X3D with Don’s X3dToJava.xslt). You might find www.web3d.org/x3d/stylesheets/java/src/python/pyjnius inspirational to find java class files.


Suggestion:   Traverse content/examples folder to find java classes with java, so we can bring each test case into Java in turn.   Bonus points awarded for checking for memory leaks.

Students welcome!

John Carlson




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190209/95290e23/attachment.html>


More information about the x3d-public mailing list