You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/instructor-guides/io-testing.mdx
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,3 +49,33 @@ We'll be selecting `Python` for this guide.
49
49
You would see that a two new files have opened up on your right side of the screen as soon as you've select the verified solution.
50
50
51
51

52
+
53
+
### 5. Setting up verified solution
54
+
55
+
Once you've selected the languages for the verfied solution, you should be able to see two files in the text editor on the right side of your screen.
56
+
57
+
Both of the files will be having the same name, but one file would be part of the solution folder like `solution/main.py`. This file would contain the verified solution for the challenges. Now it's time to write the solution for the challenge
Now that we are done with the verified solution, setting up the test cases in the next step to get your I/O Lab ready.
64
+
65
+
You should be able to see a `+ (plus symbol)` beside the test cases section. Clicking on the `+` will give you a new text box to give in the input values.
66
+
67
+
If you're case requires a large input set (which can be very hard to copy/paste or type on your own) we allow ouro creators to update the inputs using a text file. All files that have `UTF-8` encoding format.
68
+
69
+
If the test cases are simple to set up you can set them up normally by typing in the text area.
70
+
71
+

72
+
73
+
### 7. Generate the output for the test cases
74
+
75
+
Now that the verified solution is written and the test case's inputs are written. It's time for us to generate the output of the test cases. Clicking on the `Generate Output` button will generate the output for all the test cases that you have setup.
76
+
77
+
If there is any error while generating the output, the error message will be shown in the output placeholder of the test case. In that case, you can edit the verified solution and attempt to generate the output again.
78
+
79
+
### 8. Setup boilerplate and verify the boilerplate code
80
+
81
+
You can add some stubs in the boilerplate code to help the student's write the code, once you're done writing this. You can click `run tests` button to verify that they are no errors caused by the boilerplate code you've written and code does not pass the test cases (the complete solution is not written in the boilerplate code area)
0 commit comments