How to get back to the current running test on Intellij IDEA? - intellij-idea

I run unit-tests from Intellij IDEA with "Track running test" option enabled and Filter turned off.
It works fine until I click on some already passed test, after that it stops tracking current running test.
Is there a way to get back to tracking?

Try switching Filter on and off. You should end up in currently running test. It works for me.

Related

IntelliJ Idea Run Option Missing

My IntelliJ Idea was running totally fine until suddenly when I used the Run Command it was not compiling for long period of time , then on right clicking the option to Run which would usually come just dissapeared. Can anyone tell me why ?
Tried Closing and Opening the IDE , not working.
Deleted Cache from the memory no result.

Testing Google Sheet Addon Triggers

I working on a Google Sheet Add-on. When testing the addon [from the legacy editor Run --> Test as add-on] and selecting "Test with latest code" sometime it does not run the latest code (I know this because I've made changes to the code and error messages are pointing old line numbers).
Saving a version number and specifying that in the test screen doesn't seem to help either.
Turns out the problems was that parts of my "Test" Add-on was running from my production deploy add-on NOT my test code. This was super confusing and took a long time to understand.
I knew that "Installable Triggers" (aka onOpen) cannot be installed or tested via editor (you will get error message when trying to install them) but thought "Simple Triggers" did work since the onInstall work and runs when testing an Add-on. However this is not true, other simpleTriggers - such as onEdit - will not run in test mode.
My test spreadsheet had magically enabled the deployed Add On [you should have to manually enabled addon to be available for each spreadsheet] so onEdit event were running creating log messages right next to development code messages - super confusing!
To avoid this problem, I completely uninstall the Production Addon from my account. Not ideal since I'll have to re-install it to test production deploys.
Also I had to rewrite my trigger code so it could be tested manually via menu bar (since the "even object" isn't available) otherwise you must deploy your code every time you want to add a debug statement.
I hope this save someone some head banging!

Debugging a .net core container from docker-compose in Rider is buggy

I have a solution which was written originally in VS and I'm trying to run and debug it using Rider. I'm using the original docker-compose. It mostly works smoothly, but for one thing, which is debugging.
Basically the debugging will start and run fine too, the breakpoints are being hit but some variables, when trying to see their value (no matter if by hovering, using immediate window or whatever) will instead show en error:
the name 'x' does not exist in the current context
Any ideas on what could possibly be the reason of such behaviour?
In case anyone stumbles upon this. The solution was to change the dotnet build command's configuration flag to Debug from Release in the Dockerfile.
I don't know how come it works in Visual without changing this flag, maybe there is some automatic override when setting solution run mode to debug or something. However, it seems in Rider it doesn't work automagically :)

UI Tests passing in XCode, Failing in Jenkins

Whenever I run UI Tests locally, they pass, and I can watch the simulator do exactly what it's supposed to.
Then, when the tests run on Jenkins, they fail on the first line.
If it matters, this is the failure:
UI Testing Failure - No matches found for Table
The above error never happens when the tests are running locally.
I appreciate all of the help, and also want to help others with the same issue as much as possible. It's tough, because I can't post code or give too much information, since the code I'm working on is proprietary.
Here was the issue:
I didn't realize that Jenkins just ran the tests on a simulator, on a computer, just like I would do on mine. I had to handle logging into the app in Jenkins' simulator, so that all of the XCUIElements were accessible.
The tests weren't passing the first line, because I wanted to tap a "Settings" button, and a user wasn't even logged in.
Please comment if I can clarify or explain further.

Selenium webdriver stops executing test in Firefox

Whenever I run a test script in firefox sometimes it continues to load/keep on loading the page even after 5 mins and at the same time I observed on the left side bottom of the page 'Transferring data from a.rfihub.com...'I had to abort the test run and execute it again. I don't know what this rfihub.com means and why it interferes or delays or stops loading the page. What can I do to prevent this? Need help. Thanks in advance
I solved this issue by enabling DO Not Track option in Firefox. Menu -> Options-> Privacy-> click manage your Do Not Track Settings and uncheck the box. Restart the Firefox. Hope this helps someone facing similar issue in future.