How to stop/cancel a cucumber/ruby test when running from Sublime Text 3 (in Windows)? - sublimetext2

I am able to launch a Cucumber/Ruby test from Sublime 3 in Windows by right clicking and choosing Ruby Test-Run Single Test.
Things brings up the Test Panel with the results, but how can I cancel this execution and stop it from keep on running?
I've tried: ctrl+z, ctrl+x, ctrl+c, ctrl+pause_break, ctrl+delete, esc, delete, pause_break, but the test keep on running and you need to wait until it's all done...
I was pressing those keys either in the Test Panel, the console, or the main screen with code.
If you know what I could try pls?

Related

My DataGrip run/debug configuration wrong and can`t run SQL console script

I am learning mySQL and practice basic syntax using DataGrip. Unkownly, I can`t run my console script.
For example,I enter SELECT * FROM table in the console window,and click the green button 'run', But it can`t run as ususal.
I assume you go to the context menu and press 'Run console_1' or used the green arrow on the upper toolbar. This actually created a run configuration for the whole script. And it is noе what you needed. To run just a single query:
Use the green arrow button on the console toolbar.
Or the shortcut: Cmd+Enter
Or in the context menu choose Execute

Invoking series of commands in a new tab in cmder

TLDR:
I want to use something like -new_console:t:tabname to open a new named tab in cmder and then transfer focus/control to that tab so that the rest of the commands I'm sending from a Python script run in that console instead. Or, I want to rename a cmder tab from a script running in the console.
DETAILS:
I often have to execute a series of commands in cmder in order to test the latest code from our continuous integration environment. Because there are several applications I often have to have running at a time, it would be helpful for me to have the cmder tabs named according to which application they are running.
The only way I've found to set a tab name from within cmder (apart from manually with mouse clicks) is to do so with the -new_console:t:tab_name command. But that only runs the next command in the newly opened tab, and not all the things that come after it.
I kick off all my commands with a Python script that accepts parameters to let me control which application opens and how things behave. I'd like to do something like this:
os.system('pwd "-new-console:t:' + args.app + '"')
so that a new tab opens with the name of the app I'm about to invoke in it, starting with an indication of the present working directory. But then I'd like all the commands that follow from the Python script to be run in this new tab instead of in the tab used to kick off the Python script. This includes printing some flowerboxed comments, but also invoking a local application server that will continue running.
Is there any way to, as you create a new (named) tab in cmder, transfer focus to that tab so that all future commands run in that tab instead of the initiating tab? Alternately, is there any way from within a cmder console to rename the cmder tab it's running in? That would be just as good.
Thanks!
Thanks for looking, but I found the answer.
In the bottom right corner is a hamburger stack. Click on that and select Settings. In General --> Tab bar, change the Console setting from the default %n to %s. Then the "title" command will change the tab name.

Intellij not shows test results in console

Howto set the output in test console? When i run test by default the output is replaced by the summary of the test, and System.outs are lost.
In IDEA 12,13 and 14 (also maybe other versions), there is a button "Hide passed tests" and is pressed by default:
The console output is missing some of the printed strings (the last ones).
When you uncheck the button and click on the test:
Then the output is shown in the console.
I got it! There is an configuration option in bottom run panel, and by default "Track running test" is checked, when I unchecked it the output stays and is no more replaced by summary.
Another possibility is that your logging is maybe configured to be written to a file. If this is the case, you can uncheck the 'Save console output to file' option.
What version of IntelliJ are you using? Normally when running a unit test, you have a Run tab at the bottom of your application and you see appear your test logging (System.outs) in there...
If your test output disappear when the test finish to run (and failing),
Disable "Select First Failed test When Finished" in order to see all prints
In the 2016.x versions, you need to change so that your launch configuration has "Activate Tool Window" unchecked (at the bottom).
It's different for tests that failed and tests that works.
If no test fails you'll have to click the top level of all tests that ran you'll see the output.
If you click on any specific working test they'll be empty, even if they printed something.
If you click on any specific failing test they'll show the output from all previous tests, including the one that failed.

Testing NativeProcess with FlexUnit

I've set up a FlexUnit test on my Adobe Air project and want to test some functionality that uses NativeProcess. When I run the test it gives this error:
Error: Error #3219: The NativeProcess could not be started. 'Not supported in current profile.'
This is because the FlexUnitApplication-app.xml doesn't have this line enabling NativeProcess:
<supportedProfiles>extendedDesktop</supportedProfiles>
The problem is that FlexUnitApplication-app.xml gets auto generated each time it builds without that line.
I've been able to get it to work by running the test using "Run all tests" from the FlexUnit Results window and letting it fail. Then I add the line to FlexUnitApplication-app.xml in bin-debug and running the tests again. If anything in the project changes I need to repeat these steps so this isn't ideal.
You need to add it to your launch profile: click on the little arrow next to the bug icon and select Debug Configurations (or select the project properties > run/debug settings)
Choose the launch configuration you want to edit on the left of the new dialog. In the "main" tab of this config, the last option is "Profile", you can switch between "desktop" and "extendedDesktop" there.

Where is the MonoDevelop "Application Output" tab?

I've just created a console application. If I run it from the command line, no problem - I can see my output. But if I run from within MonoDevelop, no application output window appears.
I restarted MonoDevelop and that had no effect.
Any suggestions?
And the answer is somewhat illogical (hence why multiple people have this question).
In the Options for the project, on the Run tab, there is a checkbox for "Run on external console." If this option is cleared, the Application Output window will come back when you run the project, and will the become available from the View -> Pads submenu.