Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
dev:translators:testing [2012/02/23 01:12] – [Structure] ajlyondev:translators:testing [2017/09/28 01:59] – [Automated Testing] odon1
Line 24: Line 24:
 /** END TEST CASES **/</code> /** END TEST CASES **/</code>
  
-In some cases, a translator test may fail where the translator itself would not, since it runs immediately upon the target page loading. In such cases, set <tt>"defer": true</tt> in the affected test case to make the test harness wait 10 seconds after the page loads before running:+In some cases, a translator test may fail where the translator itself would not, since it runs immediately upon the target page loading. In such cases, set ''"defer": true'' in the affected test case to make the test harness wait 10 seconds after the page loads before running:
 <code javascript> { <code javascript> {
  "type": "web",  "type": "web",
Line 32: Line 32:
  }</code>  }</code>
  
-Note that Scaffold does not currently produce or maintain the defer annotation, so it will need to be added manually, rather than generated using Scaffold's test builder.+Note that Scaffold does not currently produce or maintain the defer annotation, so it will need to be added manually, rather than generated using Scaffold's test builder. The annotation is supported in Zotero 3.0.4 and later.
 ===== Running tests ===== ===== Running tests =====
 An overview of the currently installed translators, giving the option of running their tests, can be accessed by entering the following into the address bar: An overview of the currently installed translators, giving the option of running their tests, can be accessed by entering the following into the address bar:
Line 40: Line 40:
  
 ===== Automated Testing ===== ===== Automated Testing =====
-The translator tests are run daily at 9 pm EST by the Zotero project to detect new failures and incompatibilities. Test results are available at http://zotero-translator-tests.s3-website-us-east-1.amazonaws.com/+The translator tests are run daily at 9 pm EST by the Zotero project to detect new failures and incompatibilities. Test results are available at https://zotero-translator-tests.s3.amazonaws.com/index.html 
 + 
 +====== Further Reading ====== 
 + 
 +More detailed instructions are available at [[https://www.mediawiki.org/wiki/Citoid/Creating_Zotero_translators#For_translation-server_side_development |MediaWiki]]. See [[https://www.mediawiki.org/wiki/Citoid/Creating_Zotero_translators#Write_test_cases|Write testCases (with translation-server)]] or [[https://www.mediawiki.org/wiki/Citoid/Creating_Zotero_translators#Generate_test_cases|Generate testCases (with Scaffold)]].
dev/translators/testing.txt · Last modified: 2017/11/12 19:53 by 127.0.0.1