Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Orion/JS Unit Test"

(New page: = Writing Javascript unit test cases = We are using [http://code.google.com/p/js-test-driver/ JS Test Driver] for the Javascript unit test. *Test cases can be declared in .js files under...)
 
(this page is too old just redirect to Orion/Running_the_tests)
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= Writing Javascript unit test cases  =
+
#REDIRECT [[Orion/Running the tests]]
 
+
We are using [http://code.google.com/p/js-test-driver/ JS Test Driver] for the Javascript unit test.
+
*Test cases can be declared in .js files under your project.
+
*A .js file can declare as many test cases as you want but we recommend you declare one test case per file.
+
*The test case declaration is very simple : 
+
{{Orion/CodeBlock|code =
+
MyTestCase = TestCase("MyTestCase");
+
MyTestCase.prototype.testA = function(){};
+
}}
+

Latest revision as of 17:12, 22 May 2014

Back to the top