Skip to content

Added basic tests and fixed upgraded dependency issue#60

Merged
micszo merged 4 commits intomainfrom
fix-upgrade
Sep 26, 2022
Merged

Added basic tests and fixed upgraded dependency issue#60
micszo merged 4 commits intomainfrom
fix-upgrade

Conversation

@mnocon
Copy link
Copy Markdown
Contributor

@mnocon mnocon commented Sep 22, 2022

This PR fixed the issues after #59

Because I was adding a new namespace for tests I've decided to get rid of the Platform part in all classes - to make it consistent with other DXP packages.

I was able to write a meaningful test for the LinkDependenciesCommand, which tests the Command output.
For RunRegressionCommand I was not able to find the right balance - the Command does many interactions (Github API, filesystem changes, git repository changes) that require mocking all dependencies, which would result in a test very strictly coupled with the implementation. The test I've ended up adding would detect the issue that this PR fixes.

Also e1f1024 fixes small issue related to stable branches.

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Copy Markdown
Contributor

@micszo micszo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for expanding CI coverage in this repo!

{
public function testIsInitializable(): void
{
Assert::assertInstanceOf(RunRegressionCommand::class, new RunRegressionCommand());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a neat way of detecting changes in classes!

@micszo micszo merged commit 3cba18c into main Sep 26, 2022
@micszo micszo deleted the fix-upgrade branch September 26, 2022 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants