Skip to content

Add Standard Code Test assessment JSON guide#469

Open
jairovelasquez wants to merge 1 commit into
masterfrom
sct-json
Open

Add Standard Code Test assessment JSON guide#469
jairovelasquez wants to merge 1 commit into
masterfrom
sct-json

Conversation

@jairovelasquez

@jairovelasquez jairovelasquez commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive guide for authoring Standard Code Test assessments in Codio, including configuration options, test cases, and practical examples.

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

This PR adds a new documentation guide for authoring "Standard Code Test" assessment JSON files in Codio. The guide covers storage location (.guides/assessments/), filename conventions, complete JSON schema structure, field references, configuration options, test case format, and multiple authoring examples. A navigation entry is added to the Guides toctree for discoverability.

Changes

Assessment documentation

Layer / File(s) Summary
Standard Code Test assessment JSON guide and integration
source/instructors/authoring/guides/standard_code_test_assessment_json.rst, source/instructors/authoring/guides/intro.rst
New guide comprehensively documents code-output-compare assessment JSON structure, including storage rules, schema fields (type, taskId, source, options, metadata, sequence), comparison settings (timeout, case/whitespace/newline handling, substring matching), test case format with arguments/input/output/feedback, display options for rationale and expected answers, and usage examples for CLI arguments, stdin, and substring matching. Guide can be embedded in Markdown via `{Check It!

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • codio/knowledge#465: Adds another assessment-authoring guide (multiple_choice_assessment_json) to the same Guides section and uses the same toctree integration pattern.
  • codio/knowledge#435: Updates Standard Code Test authoring documentation that this guide directly complements with JSON schema details.

Suggested reviewers

  • shajason
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately summarizes the main change: adding a new comprehensive guide for Standard Code Test assessment JSON documentation.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jairovelasquez

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@source/instructors/authoring/guides/standard_code_test_assessment_json.rst`:
- Around line 430-431: Replace the verbose learningObjectives value (key
"learningObjectives") with a concise plain-language sentence that removes the
unexplained acronym "SWBAT" (e.g., "Students will calculate simple interest
using basic arithmetic"), and while you're editing the adjacent "guidance" value
keep it brief and consistent in tone (e.g., "Implements simple interest
calculation with basic arithmetic and formatting") so both fields read clearly
and match the guide's concise style.
- Around line 67-74: The guide currently shows inconsistent embed token spacing
— `{Check It!|assessment}` vs elsewhere `{Text |assessment}` — so pick one
canonical token format (recommend no space before the pipe, e.g. `{Check
It!|assessment}`) and update this file's example text and the surrounding
guidance to explicitly state the chosen canonical form and that authors must use
it exactly (mention the exact token pattern and that there should be no space
before the `|`), ensuring any other occurrences in related docs are aligned to
the same format.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8bb6575c-f273-4f95-8352-9df518f6f669

📥 Commits

Reviewing files that changed from the base of the PR and between 25242e5 and 819e74e.

📒 Files selected for processing (2)
  • source/instructors/authoring/guides/intro.rst
  • source/instructors/authoring/guides/standard_code_test_assessment_json.rst

@jairovelasquez jairovelasquez changed the title SCT JSON Add Standard Code Test assessment JSON guide Jun 9, 2026

.. _standard-code-test-assessment-json:

Standard Code Test assessment JSON

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment should be capitalized

In the assessment JSON, Standard Code Tests use the assessment type
``code-output-compare``.

File location and naming

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to "File Location and Naming"


{Check It!|assessment}(code-output-compare-1075712907)

Use ``{Check It!|assessment}`` exactly as shown, with no spaces before the closing brace.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add this in an important box?

}
}

Field reference

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalize r in Reference

Field reference
---------------

Top-level fields

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to "Top-Level Fields"

}
}

Standard input

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalize "i"

}
}

Matching a substring

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalize "s"

Set ``matchSubstring`` to ``false`` when the learner's output should match the
expected output more strictly, subject to the other comparison options.

Assessment files and opened files

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to "Assessment Files and Opened Files"

]
}

Guide embedding example

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to "Guide Embedding Example"


{Check It!|assessment}(code-output-compare-165558969)

Authoring notes

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalize "n"

@LolaValente LolaValente dismissed their stale review June 10, 2026 13:49

Changing to approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants