Skip to content

Refactoring PushNotification unit tests #2389

Merged
pmpurifoy merged 16 commits intomainfrom
user/purifoypaul/RefactorNotificationTests
Apr 20, 2022
Merged

Refactoring PushNotification unit tests #2389
pmpurifoy merged 16 commits intomainfrom
user/purifoypaul/RefactorNotificationTests

Conversation

@pmpurifoy
Copy link
Copy Markdown
Contributor

This PR refactors the PushNotification unit tests to fully run inside TAEF instead of a separate test app exe. Failures are now diagnosable from TAEF output.

Copy link
Copy Markdown
Contributor

@danielayala94 danielayala94 left a comment

Choose a reason for hiding this comment

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

Great to see this change coming! 😊 Please revert the changes in PowerNotification tests and address the remaining comments in our tests.

Comment thread test/PowerNotifications/APITests.cpp Outdated
Comment thread test/PowerNotifications/PowerNotifications.vcxproj Outdated
Comment thread test/PushNotificationTests/PackagedSelfContainedTests.cpp Outdated
Comment thread test/PushNotificationTests/PackagedSelfContainedTests.cpp Outdated
Comment thread test/PushNotificationTests/PackagedSelfContainedTests.cpp Outdated
Comment thread test/PushNotificationTests/UnpackagedSelfContained.cpp Outdated
Comment thread test/PushNotificationTests/UnpackagedSelfContained.cpp Outdated
Comment thread test/PushNotificationTests/UnpackagedSelfContained.cpp Outdated
Comment thread test/PushNotificationTests/UnpackagedSelfContained.cpp Outdated
Comment thread test/PushNotificationTests/pch.h Outdated
Comment thread test/PushNotificationTests/PackagedSelfContainedTests.cpp Outdated
Comment thread test/PushNotificationTests/PackagedSelfContainedTests.cpp Outdated
Comment thread test/PushNotificationTests/PackagedTests.cpp Outdated
Comment thread test/PushNotificationTests/PackagedSelfContainedTests.cpp Outdated
Comment thread test/PushNotificationTests/UnpackagedSelfContained.cpp Outdated
Comment thread test/PushNotificationTests/UnpackagedSelfContained.cpp Outdated
Comment thread test/PushNotificationTests/TestFunctions.cpp Outdated
Comment thread test/PushNotificationTests/TestFunctions.cpp Outdated
Comment thread test/PushNotificationTests/TestFunctions.cpp Outdated
@pmpurifoy pmpurifoy requested a review from DrusTheAxe April 13, 2022 00:30
@pmpurifoy
Copy link
Copy Markdown
Contributor Author

pmpurifoy commented Apr 13, 2022

@DrusTheAxe This PR adds the PushNotificationsLongRunningProcess to the test Singleton msix package and adds it as a default package to install in TAEF testing. Let me know if you don't want it as part of the default packages installed and we can discuss an alternative.

@danielayala94 danielayala94 added area-Notifications Toast notification, badges, Live Tiles, push notifications and removed needs-triage labels Apr 13, 2022
Comment thread test/PushNotificationTests/UnpackagedTests.cpp Outdated
Comment thread test/PushNotificationTests/UnpackagedTests.cpp Outdated
Comment thread test/PushNotificationTests/UnpackagedTests.h Outdated
Comment thread test/PushNotificationTests/UnpackagedTests.cpp Outdated
Comment thread test/PushNotificationTests/UnpackagedTests.cpp Outdated
Comment thread test/PushNotificationTests/BaseTestSuite.cpp Outdated
Comment thread test/PushNotificationTests/BaseTestSuite.cpp Outdated
Comment thread test/PushNotificationTests/BaseTestSuite.cpp
Comment thread test/PushNotificationTests/BaseTestSuite.cpp
Comment thread test/PushNotificationTests/BaseTestSuite.h Outdated
Comment thread test/inc/TestDef.h Outdated
Comment thread test/PushNotificationTests/BaseTestSuite.cpp Outdated
Comment thread test/PushNotificationTests/BaseTestSuite.cpp Outdated
Comment thread test/PushNotificationTests/BaseTestSuite.cpp Outdated
Comment thread test/PushNotificationTests/BaseTestSuite.cpp Outdated
Comment thread test/PushNotificationTests/BaseTestSuite.cpp
@pmpurifoy
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@pmpurifoy
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@pmpurifoy
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@pmpurifoy
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

@danielayala94 danielayala94 left a comment

Choose a reason for hiding this comment

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

:shipit:

Comment thread test/PushNotificationTests/PushNotification-Test-Constants.h
@pmpurifoy
Copy link
Copy Markdown
Contributor Author

/azp run

@pmpurifoy pmpurifoy enabled auto-merge (squash) April 19, 2022 23:18
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@pmpurifoy pmpurifoy merged commit 1b59fce into main Apr 20, 2022
@pmpurifoy pmpurifoy deleted the user/purifoypaul/RefactorNotificationTests branch April 20, 2022 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Notifications Toast notification, badges, Live Tiles, push notifications

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants