-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates and Improvements to Unit Tests #298
Updates and Improvements to Unit Tests #298
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## dev #298 +/- ##
==========================================
+ Coverage 79.55% 81.73% +2.17%
==========================================
Files 69 69
Lines 2392 2392
Branches 244 244
==========================================
+ Hits 1903 1955 +52
+ Misses 408 355 -53
- Partials 81 82 +1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good. Added a couple of comments and nits. Thanks for doing this @Kpopovs1 , @in4margaret and @JenMadiedo
...arbonAware.DataSources.ElectricityMaps/test/Configuration/ServiceCollectionExtensionTests.cs
Outdated
Show resolved
Hide resolved
...arbonAware.DataSources.ElectricityMaps/test/Configuration/ServiceCollectionExtensionTests.cs
Outdated
Show resolved
Hide resolved
src/CarbonAware.DataSources/CarbonAware.DataSources.Json/test/JsonDataSourceTests.cs
Outdated
Show resolved
Hide resolved
...urces/CarbonAware.DataSources.WattTime/test/Configuration/ServiceCollectionExtensionTests.cs
Outdated
Show resolved
Hide resolved
src/CarbonAware.WebApi/test/unitTests/Configuration/ServiceCollectionExtensionsTests.cs
Outdated
Show resolved
Hide resolved
src/CarbonAware.WebApi/test/unitTests/Filters/CarbonAwareParametersBaseDtoSchemaFilterTests.cs
Show resolved
Hide resolved
src/CarbonAware/test/Configuration/DataSourcesConfigurationTests.cs
Outdated
Show resolved
Hide resolved
src/GSF.CarbonAware/test/Configuration/ServiceCollectionExtensionsTests.cs
Outdated
Show resolved
Hide resolved
src/GSF.CarbonAware/test/Configuration/ServiceCollectionExtensionsTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More comments.
src/CarbonAware.WebApi/test/unitTests/Configuration/ServiceCollectionExtensionsTests.cs
Outdated
Show resolved
Hide resolved
src/CarbonAware.WebApi/test/unitTests/Configuration/ServiceCollectionExtensionsTests.cs
Outdated
Show resolved
Hide resolved
src/CarbonAware.WebApi/test/unitTests/Configuration/ServiceCollectionExtensionsTests.cs
Outdated
Show resolved
Hide resolved
src/CarbonAware.WebApi/test/unitTests/Configuration/ServiceCollectionExtensionsTests.cs
Outdated
Show resolved
Hide resolved
src/CarbonAware.WebApi/test/unitTests/Configuration/ServiceCollectionExtensionsTests.cs
Outdated
Show resolved
Hide resolved
src/CarbonAware.WebApi/test/unitTests/Configuration/ServiceCollectionExtensionsTests.cs
Outdated
Show resolved
Hide resolved
src/CarbonAware.WebApi/test/unitTests/Configuration/ServiceCollectionExtensionsTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments. Looking good 👍
...arbonAware.DataSources.ElectricityMaps/test/Configuration/ServiceCollectionExtensionTests.cs
Outdated
Show resolved
Hide resolved
...arbonAware.DataSources.ElectricityMaps/test/Configuration/ServiceCollectionExtensionTests.cs
Outdated
Show resolved
Hide resolved
...arbonAware.DataSources.ElectricityMaps/test/Configuration/ServiceCollectionExtensionTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for improving the test coverage. Left a small nit comment, otherwise looks great
src/CarbonAware.WebApi/test/unitTests/Controllers/CarbonAwareControllerTests.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!. 👍
a11f2d2
to
fddc05f
Compare
PR Reviews from Juan pt. 2 updated schema filter tests Changes per PR reviews Pt. 3
fddc05f
to
27872f9
Compare
This is ready for review @vaughanknight , @gfmatthews |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 -it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See Merge conflicts after merging other PRs @Kpopovs1 - this one does not render in GH, and @vaughanknight looked at it locally and is unsure on documentation merge conflicts.
Hi @Kpopovs1 - I can see that you are struggling with getting the DCO check to pass - its a new requirement in all GSF repositories. Please see #309 for more info. As you are the sole author of these commits, you can rebase them and add signoff to each one of them. (this is not the preferred way, but it works) However, and I can see that you are using the preferred way of adding a remediation commit. Since it looks like you have sign-offs from two seperate github emails, might be easier for you to reset the remediation commits and force push a clean remediation commit with the proper signoffs. So more specifically - git reset both 5edd0e7 and 1dd1f12, and add in its a place a single remediation commit, which only has one sign-off at the bottom of it (only your MS email). You would need to force push those changes, but at least you don't have to modify the entire history of this branch by rebasing. You can set the account name and email which are used for sign offs by default for a specific repository via:
|
I, Kristjana Popovski <[email protected]>, hereby add my Signed-off-by to this commit: 5830bc1 I, Kristjana Popovski <[email protected]>, hereby add my Signed-off-by to this commit: 27872f9 Signed-off-by: Kristjana Popovski <[email protected]>
1dd1f12
to
9d7230e
Compare
Should be good to go! Let me know if you notice anything else @vaughanknight , @Willmish |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second round of reviews, looks good.
Pull Request
Issue Number: #290
Summary
As a Carbon Aware application developer, I want to know that all the existing codepaths have been unit tested to ensure bugs are caught.
Changes
Checklist
Are there API Changes?
No.
Is this a breaking change?
No.
This PR Closes #290