Test in editor
How staff try a programming problem in the same code editor students use – its published or unpublished version – and why it never counts in a course.
Test in editor opens the code editor students use, outside any course. Use it to check that the statement is clear, the tests are right and the limits fit before you give the problem to students. The address is /library/problems/<problem>/try.
Where to find it
Section titled “Where to find it”- At the top of the problem page and the tests page – Test in editor. When the newest version isn’t published yet and you can edit the problem, the unpublished version opens.
- The ⋯ row menu in the problem archive → Test in editor – the published version.
- Try on each published programming problem in a course’s problem list – the published version.
The editor opens in a tab of its own. Excel tasks have no code editor: their Try it opens the same address, where workbooks are uploaded instead (see Excel tasks › Trying the task).
Switching problems
Section titled “Switching problems”The editor lists problems to switch between, as students have them: the title opens a list with search, ˄ ˅ step to the previous and next problem, the problem list beside the editor shows them all, and after an accepted submission Next problem opens the next one. Statuses are your own test results.
- From a course (its Try button, or a problem’s title there and then Test in editor) – the course’s problems, by topic.
- From the problem archive – the archive’s problems, by collection, in the order of the Collections tree. Opened while browsing a collection, the list holds that collection and the ones inside it; otherwise every problem you can test, with problems in no collection last. The problem page and the tests page use the problem’s first collection.
In a list of more than 60 problems, only the open problem’s group starts expanded.
Which version, and who may
Section titled “Which version, and who may”| Version | Who can test it | Address |
|---|---|---|
| Published (the newest) | Everyone who sees the problem in the archive: teachers, course staff, group and organisation admins, system administrators | …/try |
| Unpublished | Only people who can edit the problem | …/try?version=draft |
Students never reach this page. When a problem has never been published, its editors get the unpublished version.
The editor header says what is being tested: Testing version N or Testing version N · not published. The link beside it, Test the unpublished version or Test the published version, switches versions.
staff/library/test-in-editorWhat you can do
Section titled “What you can do”Everything works as in a student’s editor: choosing a language, Run samples, Run with custom input and Submit. The differences:
- Languages – the version’s own languages, or every enabled language when it has none (there is no course to narrow them).
- Starter code – only the problem’s own; course templates are not used.
- Limits – no daily attempt limit and no topic window. Your general limits, shared with your course work, apply: at most 3 submissions judged at once, 6 submissions and 12 runs per minute.
- Code drafts in the browser are kept apart from your code in courses.
The code editor and runs are described in the students’ pages Code editor and Running and submitting.
What you see in the results
Section titled “What you see in the results”- A submission is judged on every test of the version.
- You see every test’s row, the first failed test and the compiler messages.
- You see every test’s data, hidden tests included, as on the tests page.
- Results arrive by themselves, with no need to reload.
Everyone’s solutions
Section titled “Everyone’s solutions”The Submissions tab beside the statement lists, under its own headings:
- Your submissions – your attempts here. Click one to open it in the editor; the compare button shows it next to your draft.
- Example solutions – those the problem’s editors wrote.
- Other staff’s solutions – what other staff submitted with Test in editor (attempts of an unpublished version only for its editors).
- Students’ submissions – the students of the courses you teach, each with its course, exactly as the problem’s Submissions page shows them to you: a course’s teachers, assistants and organisation administrators see its students, a group administrator only their groups’ students, a system administrator every course’s. Students of other courses and other schools are never shown.
Each list shows the newest 50 and says how many there are; All submissions opens the rest. Headings with nothing to show are left out. Students’ new submissions appear by themselves; other staff’s new solutions show after you reopen the page.
- Click a solution to open it on the problem’s Submissions page, in a tab of its own, with its code and every test’s result. The editor keeps your work.
- Open in editor (the code button at the end of a staff or student row) loads that code into the editor. If your draft is different, you’re asked first: keep your draft, compare the two, or replace your draft.
Tests never count in a course
Section titled “Tests never count in a course”These submissions belong to no course. They don’t appear in courses’ submission lists, progress, grades, the progress sheet, activity, the home page, similarity checks or exports. The inbox doesn’t notify you about their results. Students never see them; staff who can see the problem see them on its Submissions page.
| Testing the unpublished version | Testing the published version | |
|---|---|---|
| Is it kept | Deleted when the unpublished version’s tests change, it is published or the problem is deleted. | Kept like any submission. |
| Does it block deleting the problem | No. | Yes: a problem with such a submission can only be archived. |