Comments (2)
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/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.
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)
- SamplesRenderingTest is too heavy
- Java heap space error when running tests HOT 2
- `PNGImageEncoder` closes the output stream
- Build size, options, documentation HOT 5
- Release 1.1
- The SVG 1.2 dom implementation fails to load the user agent stylesheet HOT 1
- Do not assume that `GRADLE_USER_HOME` is inside `user.home` in policy files
- Replace Xalan's XPath with the JDK version
- Support Level 4 CSS Color (and Level 5 `color-mix()`) values in sRGB gamut HOT 4
- Error handling in CSS value processing is non-conformant HOT 1
- BridgeException: Cannot find the referenced element HOT 1
- Root element namespace does not match that requested HOT 20
- EchoSVG on Android HOT 6
- XMLReader HOT 7
- SVG scale problem while painting
- Add images from canvg's test suite HOT 4
- GraphicsNode and opacity HOT 1
- Publish to Maven Central HOT 4
- Arbitrary file access during archive extraction ("Zip Slip") [VERY LOW IMPACT]
- Remove Apache xmlgraphics-commons HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from echosvg.