Skip to content

[Bugfix:Developer] Filter unit test in submitty_test #12402

Merged
cjreed121 merged 3 commits intomainfrom
test-unit-filter
Feb 5, 2026
Merged

[Bugfix:Developer] Filter unit test in submitty_test #12402
cjreed121 merged 3 commits intomainfrom
test-unit-filter

Conversation

@williamschen23
Copy link
Contributor

Why is this Change Important & Necessary?

According to our documentation, https://submitty.org/developer/testing/php_unit_tests, there is a filter option that could be passed to php-unit. For people debugging single unit tests, this command is very helpful. However, in our submitty_test file, we do not allow passing in command line arguments to unit tests. Like other commands in submitty_test, we should allow it to take in arguments to help the developer

What is the New Behavior?

Allow submitty_test php-unit to take in commands, mimicking other functions

What steps should a reviewer take to reproduce or test the bug or new feature?

submitty_test php-unit --filter testRunQuery Runs testRunQuery from SqlToolboxControllerTester.php

Automated Testing & Documentation

N/A

Other information

@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.67%. Comparing base (35028b0) to head (b0cff3d).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12402   +/-   ##
=========================================
  Coverage     21.67%   21.67%           
  Complexity     9620     9620           
=========================================
  Files           268      268           
  Lines         36164    36164           
  Branches        486      486           
=========================================
  Hits           7837     7837           
  Misses        27845    27845           
  Partials        482      482           
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.04% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.69% <ø> (ø)
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 90.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-project-automation github-project-automation bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Feb 5, 2026
@cjreed121 cjreed121 merged commit 2193c09 into main Feb 5, 2026
25 checks passed
@cjreed121 cjreed121 deleted the test-unit-filter branch February 5, 2026 01:10
@github-project-automation github-project-automation bot moved this from Awaiting Maintainer Review to Done in Submitty Development Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants