Subramanya Sastry has uploaded a new change for review.

Change subject: First pass updated testing setup.
......................................................................

First pass updated testing setup.

* Updated testing modes to:
  wt2html, wt2wt, html2wt, html2html

* Updated parsoid_html2wt_tests.txt and switched
  input and result so that input is always wikitext
  and result is always html

* Current status:

  760 tests in parserTests.txt
  ----------------------------
  wt2html   : 318/442
  wt2wt     : 406/354
  html2wt   : 5/755 (hokey output comparison?)
  html2html : 272/488

  15 tests in parsoid_html2wt_tests.txt
  -------------------------------------
  wt2html   : 5/10
  wt2wt     : 9/6
  html2wt   : 8/7
  html2html : 4/11

* parserTests.txt are applicable to both PHP parser and Parsoid.
* parsoid_html2wt_tests.txt was created specifically to test
  html2wt serialization on Parsoid where the HTML cannot always
  be generated from valid wikitext -- so, the results for other
  modes may not all be valid/useful (see more below).

TODO:
-----
* Needs more work to compare test results properly
  in all modes.
* Not all tests are valid in all test modes which means
  we should add options and parserTests section flags
  so a test can be marked as valid/invalid for a set of
  testing modes, and so a whole series of tests can be
  marked valid/invalid for a set of modes.
* I dont like the input/result nomenclature -- it is
  confusing and misleading given our testing modes
  where 'result' is used as input and compared against
  'input'.  Something worth considering and fixing.

Change-Id: Ia15c079a8960d9446541f0b5dfa6d647dcf0dc92
---
M js/tests/parserTests.js
M js/tests/parsoid_html2wt_tests.txt
2 files changed, 175 insertions(+), 126 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid 
refs/changes/91/17891/1
--
To view, visit https://gerrit.wikimedia.org/r/17891
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia15c079a8960d9446541f0b5dfa6d647dcf0dc92
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to