Refactor test namespaces and replace redundant exception classes with ones provided by Symfony.#355
Merged
aaronweeden merged 10 commits intoubccr:xdmod11.0from Dec 14, 2023
Conversation
3 tasks
41e8b8d to
60081e8
Compare
7327cb3 to
715d3f0
Compare
ba8a945 to
87fb105
Compare
6 tasks
so that --debug works properly.
d3904ba to
628b24a
Compare
6 tasks
jpwhite4
reviewed
Dec 11, 2023
| REG_TEST_BASE: /../../../../../project/tests/artifacts/regression/current | ||
| steps: | ||
| - checkout | ||
| - run: |
Member
There was a problem hiding this comment.
This looks like debug code to me - does it need to be run every time?
Contributor
Author
There was a problem hiding this comment.
It's intended to be more like linting code, to check that any new test class files that are added have a namespace consistent with the PSR-4-autoloader standard, as in ubccr/xdmod#1789 and ubccr/xdmod#1795. It's probably better moved to xdmod-qa so that it only runs on changed files.
Contributor
Author
There was a problem hiding this comment.
This has been removed and moved to xdmod-qa in ubccr/xdmod-qa#29 and ubccr/xdmod#1797.
62f2bb3 to
dab2415
Compare
jpwhite4
approved these changes
Dec 14, 2023
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.
Description
Same as ubccr/xdmod#1789 and ubccr/xdmod#1794 but for the
xdmod-supremmmodule.This PR also removes the
_testssuffix from the test directory names to be consistent with the mainxdmodmodule.Tests performed
The changes to
classes/Rest/Controllers/EfficiencyControllerProvider.phpare covered partially by the existing testtests/integration_tests/lib/REST/EfficiencyControllerProviderTest.php::testCPUUsageScatterPlotEndpointMalformedRequest, and additional coverage will be provided in #350.To make sure the changes in this PR don't affect any other tests that are run, I did the following in a Docker container running
tools-ext-01.ccr.xdmod.org/xdmod-job_performance-10.5.0:rockylinux8-0.1:/unit-{before,after}.txtand make sure the only differences are namespace names and amount of time the tests ran./component-{before,after}.txtand make sure the only differences are the test directory name and amount of time the tests ran./regression-{before,after}.txtand make sure the only differences are namespace names, randomized parameters, amount of time the tests ran, and possibly transient "other notices" related to small differences in column values./integration-{before,after}.txtand make sure the only differences are namespace names and amount of time the tests ran.Types of changes
Checklist: