question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple Test Notifications

See original GitHub issue

Describe the bug The test pass notification is invoked more than once on completion, causing the plugin to dispatch more than one waifu to tell you that you did a good job.

To Reproduce Run this test: https://github.com/Unthrottled/hdd/blob/master/src/test/java/io/acari/water/WaterRepositoryTest.java

Expected behavior Well you get one sound played, but you get multiple notifications the (1 more) at the bottom of the window

Screenshots This is the event log and the notification after one test run.

image

Platform (please complete the following information):

  • Version WMP 1.0
IntelliJ IDEA 2020.1 (Community Edition)
Build #IC-201.6668.121, built on April 8, 2020
Runtime version: 11.0.6+8-b765.25 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-109-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 512M
Cores: 12
Non-Bundled Plugins: io.acari.DDLCTheme, zd.zero.waifu-motivator-plugin
Current Desktop: ubuntu:GNOME

Additional context Only one listener is being set, there is just more than one test pass notification being sent to the listeners.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
zaeraldcommented, Jul 24, 2020

I also had experienced this in #110 but it only happens when there are multiple projects opened, I can only reproduce this issue with the one you’ve provided. Do you have any idea why it shows up there and not on the other tests?

My initial investigation, I tried to recreate it in a different project

Can’t reproduce with

  1. Parameterized Test Screen Shot 2020-07-25 at 04 43 39

  2. n Number of individual test Screen Shot 2020-07-25 at 04 48 28

Can reproduce with this test.

Screen Shot 2020-07-25 at 04 49 07

So turns out that there are different ways IntelliJ executes a test. As you would notice from the highlights, there are hierarchies of subtest or list of tests where I can’t reproduce the issue, but to the one where I can reproduce it only shows one list of test but runs multiple tests.

Note: I just got curious why this happens 😂

I’ll check the PR #125 tomorrow as I was caught up by the rabbit hole when investigating this 😅.

Me: When you’ve thought that you’ve resolved the issue of multiple test invocations.

Jetbrains unit test event: there-is-another

0reactions
zaeraldcommented, Jul 25, 2020

Resolved by #125

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Must-Have Test Cases for Mobile App Push Notification
Notifications work for multiple languages and time zones. Haptics work as intended. Customers get push notifications when not logged in. These test cases...
Read more >
How to Make Push Notifications More Effective With A/B Testing
Action buttons, which allow more than one action to be taken on a notification, are great for call to action A/B testing.
Read more >
How To Do A/B Testing in Push Notification? - PushEngage
Our analytics would help you deploy push using which you can test and analyze multiple versions of different notifications in real-time.
Read more >
How to Set up Multiple Push Notification Test Users in Veeva ...
Navigate to the Push Notification Test User field located in the Mobile CRM Settings page. · Enter the usernames separated by a double...
Read more >
Cannot test multiple notifications when using `Notification::fake`
When trying to test multiple calls to the Notification facade, it appears one can't assert against both of the notifications using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found