[OA][Fullstack]: 270/assessment test runner#284
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
4082c0c to
8f349b9
Compare
8f349b9 to
3dd0118
Compare
cherman23
commented
Apr 11, 2026
| const { runEditPageTests } = useTestRunner(); | ||
|
|
||
| const handleRunTests = (tests: TestCaseDTO[]) => { | ||
| const code = getEditorContent(); |
Collaborator
Author
There was a problem hiding this comment.
Are we still saving the code with updateCode somewhere? We should be making sure that this is the case.
Collaborator
Author
There was a problem hiding this comment.
wait disregard this I didnt realize it was the edit page
| const taskTemplate = await TaskTemplateService.getTaskTemplate( | ||
| taskTemplateId, | ||
| 'TODO: REPLACE THIS LATER LAITH WITH COOKIE' | ||
| 'org_nextlab_001' // lmk if we want this to stay as the TODO |
Collaborator
Author
There was a problem hiding this comment.
Did you see this boss?
Collaborator
There was a problem hiding this comment.
Yes! Let's keep it this way for now. I fear this requires a bit more brain power then I can provide before showcase
| return SIMPLE_TYPE_ALIASES[language][lowerType]; | ||
| } | ||
|
|
||
| function toStdoutFunction( |
Collaborator
Author
There was a problem hiding this comment.
This is crazy work man good job
Anzhuo-W
pushed a commit
that referenced
this pull request
Apr 12, 2026
* feat(270): Connect frontend to test runners * fix reset state * QoL fix * test runner edits and general cleanup * lint * update function names --------- Co-authored-by: Laith Taher <lotaher04@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[OA][Fullstack] - Assessment Test Runner
Changes
Connects
useTestRunnerto frontend components. Made some additional changes to the test hook to make it possible.Edit (laith):
Notes
The API returns the tests in the same order they were received. The current frontend implementation requires that we send all public tests first due to how the TestCasePanel was implemented to show the tests. This might be something we want to revisit, given it could easily break things if changed.
Checklist
Please go through all items before requesting reviewers:
Closes
Closes #270