Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / closure_compiler / runner / how_to_test_compiler_pass.md
1 Run Java tests
2 ==============
3
4 1. Build Closure Compiler jar with all tests:
5
6         git clone https://github.com/google/closure-compiler.git
7         cd closure-compiler
8         ant all-classes-jar
9
10 2. Add test file to Eclipse and run tests in it.
11   - Launch Eclipse.
12   - File -> New -> Java Project.
13   - Enter any project name, click "Next >".
14   - On the tab "Source" click on the icon "Link additional source to project".
15   - Select "third_party/closure_compiler/runner/test", click "Finish".
16   - Click on the icon  "Link additional source to project" once again.
17   - Select "third_party/closure_compiler/runner/src", type a name "src2",
18       click "Finish".
19   - On the tab "Libraries" click "Add External JARs...".
20   - Select "closure-compiler/build/compiler.jar", click "Finish" two times.
21   - Open the class test/com.google.javascript.jscomp/ChromePassTest.java.
22   - Run As -> JUnit Test.
23
24
25 Run Python tests
26 ================
27
28 Run in Shell:
29
30     ./third_party/closure_compiler/runner/build_runner_jar.py
31     ./third_party/closure_compiler/compiler_customization_test.py