Changes

Jump to: navigation, search

MDC Infrastructure

130 bytes added, 17:58, 13 December 2006
December 13, 2006
* Thanks to Erin's help, I managed to write a basic test case to test my code. However, it only tests the 'en' language - ([http://melz.last-chance.net:2080/en/docs/nutch_test.php demo] | [http://melz.last-chance.net:2080/en/docs/nutch_test.phps code]). The reason is because the code obtains the language from the URL that calls it ($_SERVER['PHP_SELF']). After reading up on a lot of documention, the only way to test other languages was create install the wiki for every language and test the URL string - which isn't feasible.
* Since there is no direct way that I can test every language, I decided to write a unit test that tests the code I used SpecialNutch.php. This tests constructs a URL for every language, eg. for Korean, the URL will be http://developer.mozilla.org/ko/docs/Special:Nutch. Then the code (being tested) will extra out 'ko' as the language and tests to make sure that is correct ([http://melz.last-chance.net:2080/en/docs/tests/Nutch_FormTest.php demo] | [http://melz.last-chance.net:2080/en/docs/tests/Nutch_FormTest.phps code]).
* Wrote a [[MDC_Infrastructure/Getting_Started|short guide to getting started on this project]], and avoiding the problems I had.
== Project Resources ==
* [http://developer.mozilla.org Mozilla Developer Centre]
* [http://lucene.apache.org/nutch/ Nutch] - search engine used on MDC. It's written in Java, bleh.
1
edit

Navigation menu