Hi,

Since more than a year we have regression tests in MuseScore
http://dev-list.musescore.org/Testing-and-continuous-integration-td7577442.html

However, these tests work by comparing MSCX files and MSCX files don't
contain any information about the layout of the score. The layout is not
saved, it's done every time MuseScore loads a score. In order to test the
layouting engine, another type of tests was required.

Last week, Werner put in place a framework to do visual testing while
struggling with the alignment of full measure rest when a clef/key change
occurs. A visual test is made of a MSCZ file and a reference PNG file of
how the score should look. The test runs MuseScore against the MSCZ file
and create a PNG. We can then compare the two PNGs and check if there is a
difference. If there is one, we just broke the layout engine for this
feature.

Running the tests manually before each push is no fun. So let's have Travis
running them and upload them on a website. And here is the result!
http://vtest.musescore.org/2f916a23/vtest.html
The history of the tests for each commit and pull request is available here
http://vtest.musescore.org/index.html

The last image in each row is a compare image made with image magick. As
you can see there is a small issue. The characters on the Travis server are
rendered a bit bolder than on our development machines (Werner's Kubuntu
and my Windows 8 so far). It's probably a Qt bug and we will try to iron it
out in the future.

Of course, these tests are useful only if we check them often, and if we
create more of them. So if you think a behavior of the layout engine needs
to be tested, go ahead, create a test and submit a pull request! The
necessary information is on github
https://github.com/musescore/MuseScore/tree/master/vtest


lasconic
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to