This repository has been archived by the owner on Dec 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathreadme.txt
77 lines (67 loc) · 2.82 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
+------------------+
| TesterDream 1.1 | : a TopCoder Arena plugin by fushar
+------------------+
Thank you for downloading this plugin!
This is a testing plugin for TopCoder Arena which extract the example testcases
to your source code, so when you run your solution, it will be tested against
the example testcases. It currently only supports GCC C++.
FEATURES
1. Your program is tested against sample testcases with only one click.
2. Each testcase is run on different process, so you don't need to clear global
variables between testcases.
3. doubles and vector<double>s in return values are compared according to
TopCoder's rule.
4. The result of each testcase is one of the following:
* Passed
* Failed
* Runtime Error
5. All testcases are guaranteed to be performed, even when your program crashes
in some testcases.
6. You can view the time your solution takes in each testcase.
7. You can view the points you will receive if you submit your solution.
SCREENSHOT
+--------------------------------------------+
| Testing SomeProblem (250.0 points) |
| |
| #0: Passed (0.00 secs) |
| #1: Failed (0.36 secs) |
| Expected: { "foo", "bar" } |
| Received: { "bar", "foo" } |
| #2: Runtime Error |
| |
| Time : 9 minutes 3 secs |
| Score : 227.76 points |
+--------------------------------------------+
INSTALLATION
1. Download and extract the TesterDream plugin.
2. Launch TopCoder Arena and login.
3. Go to Options->Editor.
4. Click Add.
5. Type "FileEdit" in the Name box and "fileedit.EntryPoint" in the
EntryPoint box.
6. In the ClassPath box, browse the "FileEdit.jar" file in the directory
you extracted the plugin.
7. Click OK.
8. Highlight FileEdit and click Configure.
9. Go to Code Template tab. Make sure your default programming language is C++,
if not, go to Options->Setup User Preferences, go to Editors tab and select
C++ in Default Language.
10. Insert this code at the very bottom of your template.
// BEGIN CUT HERE
$TESTCODE$
// END CUT HERE
11. Click Save and then Close.
12. Click Add again.
13. Type "CodeProcessor" in the Name box and "codeprocessor.EntryPoint" in the
EntryPoint box.
14. In the ClassPath box, browse "FileEdit.jar", and then "CodeProcessor.jar",
and then "TesterDream.jar".
15. Click OK.
16. Highlight CodeProcessor and click Configure.
17. Type "fileedit.EntryPoint" in the Editor EntryPoint box, and
"fushar.TesterDream" in the Processor Class box.
18. Click Verify and make sure you don't get any error messages. Click OK.
19. Select CodeProcessor as the Default editor.
20. Click Save and then Close.
21. Enjoy!
[fushar]