Updates and improvements to CodeGrade.
View all changes

October 6, 2023

Code Structure Tests block

This sprint we have added a new test block to AutoTest v2 for code structure testing! The "Code Structure Test" block uses Semgrep, a popular code structure testing framework. Using this test block allows you to select a version of semgrep to use, specify the file(s) to test and the specify a pattern to match against. Using the Positive match block allows you to check for code structures that your students should have used in their assignment while the Negative match block lets you search for code that should be avoided.

Other improvements

  • You can now specify a default severity for comments generated by the Flake8 block who's severity isn't recognised by CodeGrade. Additionally, you can add a mapping to unknown flake8 error codes.
  • The Pytest block now shows a red cross when a submission achieves zero points.
  • It's now possible to choose how many submissions are shown on the submission list page.
  • We now make sure that the locale of the VM in AutoTest v2 is set correctly.

Schedule a personalized tour of CodeGrade today