Skip to content

Conversation

@spygi
Copy link
Contributor

@spygi spygi commented Oct 12, 2021

PR for issue #506

  • New integration tests project that contains a couple of test classes that were part of unit tests previously.
    • The classes test from the Facade test project, test against a Docker redis instance. In order to have them passing make sure to docker start redis6001 and redis6002 also locally.
    • The NetworkServer test project contained some other integration tests that had "E2E" or "End2End" in their names. Those were moved and the names were adjusted accordingly.

Validation

@spygi spygi closed this Oct 12, 2021
@spygi spygi reopened this Oct 12, 2021
@spygi spygi marked this pull request as ready for review October 13, 2021 12:27
@spygi spygi changed the title Feature/506 integration tests New integration tests project Oct 13, 2021
@spygi spygi marked this pull request as draft October 13, 2021 13:03
@spygi spygi marked this pull request as ready for review October 13, 2021 14:47
@bastbu
Copy link
Collaborator

bastbu commented Oct 13, 2021

What is the purpose of the LoRaWan.IntegrationTest, now that we have LoRaWan.Tests.Integration project? Should we merge the two projects?

Copy link
Collaborator

@bastbu bastbu left a comment

Choose a reason for hiding this comment

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

The PR looks good to me and is a good step from the previous setup. I especially like that the unit tests are much quicker to run and that there's a clearer separation between the different types of tests.

I do not see a reason to keep two integration test projects (LoRaWan.IntegrationTest and LoRaWan.Tests.Integration) and would suggest to merge these before merging the PR

@spygi
Copy link
Contributor Author

spygi commented Oct 13, 2021

What is the purpose of the LoRaWan.IntegrationTest, now that we have LoRaWan.Tests.Integration project? Should we merge the two projects?

The other PR #491 removes the LoRaWan.IntegrationTest project and moves it's contents into the E2E folder. My plan is to merge first #491 and then this PR here so at the end there will be only 1 Integration tests project.

spygi added 3 commits October 14, 2021 13:52
…n-tests

# Conflicts:
#	LoRaEngine/LoRaEngine.sln
#	LoRaEngine/modules/LoRaWanNetworkSrvModule/LoraTools/CommonAPI/ApiVersion.cs
#	Tests/E2E/LoRaWan.Tests.E2E.csproj
…n-tests

# Conflicts:
#	LoRaEngine/LoraKeysManagerFacade/HttpUtilities.cs
#	LoRaEngine/LoraKeysManagerFacade/SearchDeviceByDevEUI.cs
#	LoRaEngine/LoraKeysManagerFacade/VersionValidator.cs
#	LoRaEngine/modules/LoRaWanNetworkSrvModule/LoRaWan.NetworkServer/ServiceFacadeHttpClientProvider.cs
#	LoRaEngine/modules/LoRaWanNetworkSrvModule/LoraTools/CommonAPI/ApiVersion.cs
#	LoRaEngine/test/LoRaWanNetworkServer.Test/ServiceFacadeHttpClientHandlerTest.cs
#	LoRaEngine/test/LoraKeysManagerFacade.Test/ApiValidationTest.cs
#	LoRaEngine/test/LoraKeysManagerFacade.Test/ApiVersionTest.cs
#	LoRaEngine/test/LoraKeysManagerFacade.Test/HttpUtilitiesTest.cs
#	LoRaEngine/test/LoraKeysManagerFacade.Test/SearchDeviceByDevEUITest.cs
#	Tests/Integration/DevAddrCacheTest.cs
#	Tests/Integration/FunctionBundlerTests.cs
#	Tests/Shared/LoRaWan.Tests.Shared.csproj
#	Tests/Shared/WaitableLoRaRequest.cs
@codecov-commenter
Copy link

codecov-commenter commented Oct 15, 2021

Codecov Report

Merging #508 (e96a72d) into dev (d5178ba) will decrease coverage by 8.26%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #508      +/-   ##
==========================================
- Coverage   62.37%   54.11%   -8.27%     
==========================================
  Files         131      153      +22     
  Lines        5534     5714     +180     
==========================================
- Hits         3452     3092     -360     
- Misses       2082     2622     +540     
Impacted Files Coverage Δ
LoRaEngine/LoraKeysManagerFacade/HttpUtilities.cs 0.00% <ø> (ø)
...gine/LoraKeysManagerFacade/SearchDeviceByDevEUI.cs 0.00% <ø> (ø)
...RaEngine/LoraKeysManagerFacade/VersionValidator.cs 0.00% <ø> (ø)
...an.NetworkServer/ServiceFacadeHttpClientHandler.cs 0.00% <ø> (-88.00%) ⬇️
...n.NetworkServer/ServiceFacadeHttpClientProvider.cs 0.00% <ø> (ø)
...etworkSrvModule/LoRaWan.NetworkServer/UdpServer.cs 0.00% <ø> (ø)
...NetworkSrvModule/LoraTools/CommonAPI/ApiVersion.cs 0.00% <ø> (ø)
...SrvModule/LoraTools/ADR/LoRaADRStrategyProvider.cs 0.00% <0.00%> (-100.00%) ⬇️
...n.NetworkServer/ExternalGatewayLoRaRequestQueue.cs 0.00% <0.00%> (-100.00%) ⬇️
... and 94 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 339dd6c...e96a72d. Read the comment docs.

spygi added 2 commits October 15, 2021 18:47
…egration" is used in the name only when required to avoid name "collisions"
@spygi spygi temporarily deployed to CI October 15, 2021 17:03 Inactive
spygi and others added 7 commits October 18, 2021 09:32
- Ensures coverage report is generated for integration tests.
- Excludes Tests from coverage.
- Fixes DotNet.509 reference
Bumps [Microsoft.Azure.EventHubs](https://github.com/Azure/azure-sdk-for-net) from 4.2.0 to 4.3.2.
- [Release notes](https://github.com/Azure/azure-sdk-for-net/releases)
- [Commits](Azure/azure-sdk-for-net@Microsoft.Azure.EventHubs_4.2.0...Microsoft.Azure.EventHubs_4.3.2)

---
updated-dependencies:
- dependency-name: Microsoft.Azure.EventHubs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@spygi spygi force-pushed the feature/506-integration-tests branch from 37649e7 to 517ebf2 Compare October 18, 2021 14:14
@spygi spygi merged commit d5b58ca into dev Oct 19, 2021
@spygi spygi deleted the feature/506-integration-tests branch October 19, 2021 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants