Git Product home page Git Product logo

Comments (2)

carlosame avatar carlosame commented on September 24, 2024

Let's describe the situation from which we start, as the tests of the Batik project do not work (at least not for me): the build.bat script has classpath issues, and when trying to run the tests manually I find problems with the security manager. To overhaul the integration tests from Batik, the most promising approach seems to use the Maven Assembly plugin, and the next two URLs contain relevant information about the process:

https://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html

https://maven.apache.org/plugins/maven-assembly-plugin/assembly.html

The idea would be to create two jars, one with EchoSVG and all dependencies and another with the script classes to be sandboxed. Something to explore when I find time for that.

from echosvg.

carlosame avatar carlosame commented on September 24, 2024

The tests have been converted to JUnit and can be run with Eclipse (please open an issue to ask for support of additional IDEs). The security manager issues were fixed, and the tests no longer produce loads of bogus test failures due to inadequate file comparison procedures.

The old test API in the original echosvg-test module is no longer being used (and was removed), as it followed a black-box approach that was catching and managing all the exceptions (making harder to figure out what went wrong). It also made more difficult to write the tests, resulting in test bloat (the new JUnit-based tests are significantly smaller).

Finally, the overhauled echosvg-test-old module was renamed to echosvg-test which now contains all the tests. I decided to have all the tests in a single module —instead of distributing them among the relevant modules— because the tests often use the same set of resources and run code from other modules. That is, to test the code in one module it is often more convenient to use code from another.

Some testing duplications and oddities remain (as well as failed tests) but those could be the subject of new, narrower issues. It is time to close this big, generic issue.

from echosvg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.