Skip to content

Add unit tests for api-tools/parser/gradeLoader #44 (#118)#148

Merged
mikehquan19 merged 2 commits intodevelopfrom
feat-GradeLoaderTests
Apr 2, 2026
Merged

Add unit tests for api-tools/parser/gradeLoader #44 (#118)#148
mikehquan19 merged 2 commits intodevelopfrom
feat-GradeLoaderTests

Conversation

@SoggyRhino
Copy link
Copy Markdown
Contributor

Same as the old pr but now merging from a branch:

  • Made grade loader return map, error (formerly used global var)

  • Made grade loader use provided log file instead of assuming ./logs/

  • Reduced logging from 1 log file per file to just log to defualt (std out + main log file)

    • This was a bigger change I can revert it, but it seemed excessive.
  • Made missing optional column logging verbose

  • Changed the updater flag so that it no longer nukes the whole testdata dir, this means PRs shouldn't be as bloated with test data

There was a small issue where course descriptions could have extra white space.

SoggyRhino and others added 2 commits April 1, 2026 18:40
* cleanup loader poc test

* Cleaned up gradeLoader code and updated parser tests to use grade data

* New testcase

* Added unit tests for gradeLoader.go, added more test data, minor fix validator test

* fix whitespace error, fix logging

---------

Co-authored-by: SoggyRihno <94922205+SoggyRihno@users.noreply.github.com>
Co-authored-by: Mike Quan <hoangphucquan19@gmail.com>
@SoggyRhino SoggyRhino requested a review from mikehquan19 April 1, 2026 23:57
@mikehquan19 mikehquan19 merged commit 92381a3 into develop Apr 2, 2026
2 checks passed
@mikehquan19 mikehquan19 deleted the feat-GradeLoaderTests branch April 2, 2026 18:37
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