You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we do more and more changes to the code chances are high that we will add new regression, even to issues we previously fixed. Without an automated test suit, we are working blindly and one needs to manually test files after each commit which is unpractical and can’t be really enforced.
We should investigate adding an automated testing mechanism (for text frames only for now). There are three kinds of functionality we need to test:
The actual text layout, independent of the rendering; basically the glyphs, there positions and other properties. We can handle this by having a special implementation of TextLayoutPainter that logs all method invocations in some text format, that we can use for comparing output, something like:
On screen rendering. We can save the output of ScPainter to an image (it is already a QImage) and use that for comparison, with some tolerance for rasterisation differences.
PDF (and other export format), we can just export to the desired file and find a way to compare such files to catch any relevant differences.
This all, of course, depends on find away to run Scribus from command line and preferably without opening any windows in a completely automated way.
The text was updated successfully, but these errors were encountered:
As we do more and more changes to the code chances are high that we will add new regression, even to issues we previously fixed. Without an automated test suit, we are working blindly and one needs to manually test files after each commit which is unpractical and can’t be really enforced.
We should investigate adding an automated testing mechanism (for text frames only for now). There are three kinds of functionality we need to test:
TextLayoutPainter
that logs all method invocations in some text format, that we can use for comparing output, something like:ScPainter
to an image (it is already aQImage
) and use that for comparison, with some tolerance for rasterisation differences.This all, of course, depends on find away to run Scribus from command line and preferably without opening any windows in a completely automated way.
The text was updated successfully, but these errors were encountered: