Is there a way to ignore a test in uTest? - scala.js

For example, spec2 has a feature "Pending until fixed".
Is there a way to ignore a test in µTest?

Nope, the way it's done so far is to comment it out. It's not great, but it's been enough for now. Perhaps such a feature may appear at a later date, but it doesn't exist right now.
Source: I wrote uTest

Related

"Create local mock" quick fix

a few hours ago I managed to crash my complete Eclipse in such a way that I needed to reinstall it from scratch.
After a while I noticed that one cool feature is missing: It was a quick fix options for unit tests, like this:
Besides these 4 options, I had a fifth: "Create local mock" or similar. That option would've created in the images example the line
CatalogueArticle cataArticle = mock(CatalogueArticle.class);
I really miss this and I am not able to google this little feature ... came it with MoreUnit? (doesn't seem so as I use it already), did I write it myself (don't even know how, so I doubt that), can I check some preferences to enable it, ...)
I hope someone knows this feature and can tell me how to enable it again :)
You are looking for the plugin "Mockito Quick Fix Tools". You find it on the Marketplace.

Track code changes to specific functions

Not sure how to even search for this topic so I'm just going to ask. I have a couple places in my code where changes to one function have to be also made to a similar function. Basically the operations in the functions are very similar but the data being worked on is different.
I don't like it but for now that's how it is. My question is anyone knows of a way or a tool that will notify me if a certain function has changed. If I get the notification I know to confirm the changes were made to other function.
Please don't tell me to change my code. I know this isn't ideal and thought has been put into alternatives, but nothing elegant has popped up.
Thanks,
Gunner
Here is an idea I have. Maybe it will set the train of thought...
I can add a special comment in my code for a block that I want to be tracked. The comment will have opening and closing syntax:
my_code.php...
//track-start-1234
[CODE]
//track-end-1234
//track-start-5678
[CODE]
//track-end-5678
I will then have a script that I tell to check a list of files, my_code.php, for now. It will look for the special comment syntax. "1234" will represent a file that holds the last modified code for that function, so 1234.php. If the contents between the comments do not match the code stored in the file then an alert is fired. Also I might add a relationship to the other code so the alert says something like
Code 1234 has changed. Please make sure code 5678 has been updated as well.
I think I can add this script to GIT somehow so it either is part of the core git commands like "push" or maybe just another command I have to run as part of our deployment process. A second option might be adding it to phpstorm's code inspector or something like that.
When the code has been modified and everything is good I will just manually copy the new code into the comparison file. There will not be a ton of updates so this will not be too tedious.
For now this is probably the route I'll go, but any critiques or suggestions are definately welcome.

Setting PyDev "Search" to case insensitive by default

I know this sounds like a newbie question, but I've been using PyDev for years and never run into this till now. I've searched Google for hours to no available. I feel like I'm overlooking something really simple, but...
In PyDev, when I search (ctrl-H), the dialog box always has "Case Sensitive" checked when it first comes up. I'm 99.5% sure this didn't use to be the case for me. However, I cannot seem to locate the setting that turns off Case Sensitive by default.
Thanks,
Matt
Well, this doesn't seem to happen to me... when I do Ctrl+H the case-sensitive is unchecked. Which PyDev/Eclipse versions are you using? Which OS? Do you have some error in your error log? (see http://pydev.org/faq.html for how to get it)
p.s.: Note that in an existing search it'll reload the configuration you used last for it.

Eclipse - Number of times compiled over project?

My team just finished a huge project. We're going to present it to class in a week, and want to add some interesting stats.
Is there any way to find out how many times we've compiled the code over the last X days?
Thanks
Not that I'm aware of but if you go into Project>Properties>Refactoring History you can see a detail of all the refactoring you've done. That may make for some interesting stats.
I'm not aware of such functionality but you can install a metrics plugin such as this for other code metrics. Eclipse auto-compiles code so I'm not sure how useful such as statistic is.
I don't know of any way to get the number of times you compiled. But if you want some similar (and hopefully useful) statistics, go to .metadata\.plugins\org.eclipse.core.resources.history. You will see the change history there. Each time you make a change, Eclipse keeps track of the change by creating a file here. Sort the files by date, and you can easily get some statistics to display for your presentation.

From Eclipse to IntelliJ

I know some (crazy) people want to move from IntelliJ to Eclipse. On my side, I am moving the "normal way", i.e. from Eclipse 3.3 to IntelliJ 8.0.1
I really like it, but I am a little lost sometimes.
Do you know any specific IntelliJ guide or tutorial created specifically for Eclipse users?
For example, after some tests, I missed some options usefull on Eclipse (I don't say they don't exist in IntelliJ, I just say that I didn't find them !):
Automatic insert at the correct position of the ';' character
Actions made on save (format, reorganize and clean imports)...
Check this FAQ in the Jetbrains home page: link. It is not a guide or tutorial, but it goes through some basic concepts that Eclipse users should accustom themselves with when they move.
For automatically inserting ';' at the correct position (as well as braces) the last time I've looked (probably Idea 6, maybe 7) it didn't exist. My colleagues always wonder why I insert ';' in stupid places when I'm pairing with them. I told them to notify me when this feature becomes available in Idea, but until now they didn't.
There's the two topmost related questions (see right column) covering "Things possible in A that aren't possible in B" for both directions - you might find ideas there as well as in the comments to the answers where people tell you what to alternatively do.
Edit (maybe this is better here than in the comments);
...it seems to be somewhat possible. See the comment to my answer to the related question: . One could argue that CTRL-SHIFT-ENTER is less intuitive than ';', but in Idea you get used to type a lot more of such shortcuts than in eclipse... This comes closest to the functionality you asked for. Hope it helps...