Quality control framework/Usage

From Apertium
Jump to navigation Jump to search

regtest.py[edit]

So far, the only truly usable piece of code is regtest.py. This is the regression test code for taking tests off the wiki and running it on an Apertium dictionary. In the future, statistics will be records.

Usage[edit]

$ regtest.py <directory> <mode> <xml-url>

Example[edit]

$ regtest.py . br-fr http://wiki.apertium.org/wiki/Special:Export/Breton_and_French/Regression_tests

Output[edit]

$ regtest.py . br-fr http://wiki.apertium.org/wiki/Special:Export/Breton_and_French/Regression_tests
Now testing: br
br-fr	  Ar 6 den
WORKS	  Les 6 personnes
br-fr	  Kreñvaat koulz ha micherelaat ar c’helenn brezhoneg
	- Renforcer ainsi que professionnaliser l'enseignement de breton
	+ Renforcer ainsi que professionnaliser l'enseignement de breton Été @bezañ @FMAINV> en train de présenter la à lui