Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Speed] XSpec runs too slow for TDD #1373

Open
cmarchand opened this issue Mar 5, 2021 · 2 comments
Open

[Speed] XSpec runs too slow for TDD #1373

cmarchand opened this issue Mar 5, 2021 · 2 comments

Comments

@cmarchand
Copy link
Collaborator

cmarchand commented Mar 5, 2021

When developing - or debuging - in Test Driven Development, you need a very fast run of your unit tests : less than 10s.

Starting ant needs a JVM start, an important library run, evaluating the build.xml, then compile XSL (the one from XSpec framework), generate XSL, compile it and run it. All of those things are slow.

If we could avoid starting a JVM, parsing the build.xml, compile framework's XSL, it could be much better. But it won't be anymore available from command line !

There is no action required from framework, I think it is quite efficient. But the machinery around could be better.

What do you think of a Java library, that will embed all the compiled framework, and that could be directly call from an IDE, a maven plugin, or anything else written in Java ? This will require Saxon-EE to compile it, or to use XSL-based Saxon compiler, but it seems to be feasible...

@AirQuick
Copy link
Member

AirQuick commented Mar 5, 2021

I haven't measured it, but it seems to me that the fastest practical way available right now to run XSpec tests in the course of stylesheet development is running "XSpec for XSLT using XProc" transformation scenario on Oxygen, probably because it involves no JVM startup.

@cmarchand
Copy link
Collaborator Author

Yes, it is much faster than invoking the ant scenario.
I'm gonna put 2 cents on this, just a small test...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants