Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Can anyone recommend tools or articles that help me to learn how to TDD IronPython code?
The current version of IronPython (v2.0) doesn't seem to agree with nose. This may have been fixed in 2.6, but I haven't re-run my test to figure that out yet. So for now you're only option - unless someone has experimented with one of the other python testing frameworks - pyunit is you're only choice.
You may also want to check out mock, a mocking framework created by Michael Foord which pretty much guarantees that it's going to work just fine with IronPython. If I recall correctly, he even shows some examples in his book, IronPython in Action.
Finally, you should probably check out this link from the cheesecake project for several other tools that you might be interested in.
IronPython has a good unit testing framework inherited from Python called PyUnit.
Writing unit tests using PyUnit is simple:
import unittest class
Create a class that inherits unittest.TestCase (test fixture)
Write test methods using assertions methods
You can read more about it in the following links:
I wrote a blog post on the subject - Getting started with IronPython – Part 3: unit testing. You can find relevant links at the bottom of the post.
MetaDeveloper has a similar post - Unit Tests with Iron Python
unittest.py documentation - very good resource along with code snippets
If you use unittest.py consider using nose as well, nose provides an alternate test discovery and running process for unittest. Should make writing and running unit tests easier.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Can someone suggest a IDE for Ruby which will make it easier to understand the code flow of the project. I am looking for something similar to intellij remote debugger for JAVA. The debugger should transfer the complete control of the code, so that stepping into and stepping out of the code becomes easier.
Rubymine is a very good IDE by JetBrains, so you should be on famillier grounds if you've worked IntelliJ. Among other things, it has a built in debugger with the functionalities you described.
One major caveat though - it's not free, and there's no community edition like there is for IntelliJ.
I use cloud9 IDE for Ruby programming and it does everything and more. You get a full Linux environment which includes a terminal, file-tree structure navigation and a code-editor. Best of all it's free to use but there are upgrade options if you need more muscle.
You can even collaborate on it (which you may have to pay for, I'm not sure).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I can't seem to find a way to generate documentation for Clojure code on Windows.
Marginalia seems to be broken on all platforms since 1.7 (see here:
https://github.com/gdeer81/marginalia/issues/158).
Codox has an issue
open on this topic (https://github.com/weavejester/codox/issues/110).
The Autodoc plugin for Lein 2 seems to be broken as well (not
enough reputation to post more than two links, but there's an issue
open on this over at GitHub).
Has anyone succeeded in running any of these three on Windows? Should I try something else?
Note:
I do not have a choice here, it must run on Windows.
As I'm building a case for clojure in the company, it must play well with leiningen, which is used to build and test our code.
Another option is autodoc - seems to still be active, but from the README it seems there are no promises it works on windows - still you could give it a try.
I think codox might still be your best bet. It's pretty popular and well maintained (there's only 4 open bugs right now and they're pretty newish - one of which is the one you referenced in your question). So maybe give it some time.
Finally, I know this is probably obvious and not ideal, but you could at least do one-off generations of documentation on a *nix system for the time being.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I have recently discovered the amazing world of automated debugging, where your tool try to automatically isolate the part of the code that causes a bug. Since then, I have found some tools, like these:
delta debugging (implementation in DD.py) using scientific methodology applied to debugging.
static and dynamic program slicing extracting a subprogram trace highlighting the variables you want to observe.
git-bisect using bisection applied to code history and mixed with delta debugging to quickly find what change caused the bug.
I'm interested into finding more algorithms for automated debugging, which can automate some part (or all?) of the debugging process and where a pratical working implementation exists, particularly:
approaches such as delta debugging (which can precisely pinpoint where and why a bug happens in the code by using a systematic/automated approach).
is there a software that can automatically generate a minimal program that reproduces a bug from a full program?
NB: some tools I cited are mainly geared towards Python but I am looking for automated debugging tools on any language, what is interesting me is the approach and algorithms, not the specific implementation, but I require an implementation (even a proof of concept) because I would like algorithms which have already been practically applied to real problems (ie, they work, that's just not computer science philosophy).
Clarification: I'm not looking for automated testing tools (which automatically test to find a new bug), but automated debugging approaches where you have a specific bug you want to find the origin in your code.
I have found a few softwares that can generate a minimal program that reproduces a bug:
DD.py has in fact two functions: dd() to find the minimal change that introduced a bug, and ddmin() which finds the minimal configuration (ie, minimal test case).
Delta, a program specifically tailored for that purpose.
I also found a course on Udacity called Software Debugging which is presented by Andreas Zeller, the original author of delta debugging.
Side note: these are also somewhat related tools (although they are mainly unit testing tools, they can be used in combination with automated debugging so it's kind of related):
coveralls
coverage
automated unit test generator Pythoscope
I am still looking for alternative approaches to automated debugging.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Would really appreciate your help with Tcl/Tk testing framework. I am supposed to test a windows application written with Tcl/Tk, twapi, gdi 0.9.5.1. Do you know a black-box and/or white-box test framework that will help me with GUI testing (generate mouse event, etc etc, and drive the application)? What I expect from the test framework is something like what WindowsLicker allows you to do for Swing.
Tk can generate events with the event generate command, but it will only send these events to itself. You can combine these with the tcltest package to do such testing as you require.
That said, I actually advise splitting up your code so that there is a clear separation between the GUI and the functionality that powers it (the “business logic layer”, to borrow a phrase from server architectures). You can then test your baseline functionality thoroughly without having to fiddle around with testing GUIs, which is enormously easier. Once your BLL is working robustly, testing your GUI then becomes a matter of ensuring that actions in the GUI manipulate the view correctly or translate into appropriate BLL calls (which you know will either work correctly or fail in a way that is clear).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Well, I tried Shoes, Titanium, and RubyFX (or was it FXRuby?) and am not yet quite happy with the stability and cross-platform support from any of them as desktop application GUI tools. Next in line is Adobe AIR. Anyone know what the best tool is that will integrate Ruby and Adobe AIR? Is it even possible?
I think the better question might have been "is there an AIR/Ruby integration framework?" because I don't recall ever having seen such a thing...
Did you consider Google as a possible first port-of-call? ;-)
First result I got was some info at RubyInside.
However, the fact that this question is (as I write this) the #8 search result suggests that there may may not be much to find.
Beyond that, I'd also suggest taking a look at WxRuby, which seems - from a Windows-only perspective so far - to produce nicely native-looking UIs.
Have you considered using jRuby and Swing? Using Ruby really makes Swing much more pleasant to work with.
It appears that at the time of writing, there are no Ruby/AIR frameworks.
I'd agree that there isn't a framework that answers your question, per se. But if you have a majority your rails stuff written, a good 'service wrapper' that you might want to look at is weborb. We use it for our C# classes and it's only about 10Bil times faster than flat xml service calls (You'll still receive xml, but it will be serialized/deserialized --- may the FSM bless AMF.)
True, you'd still have to write a UI, which, by the wording of your question, I'm guessing you wanted to avoid.
Is this the sort of thing you are looking for? http://www.appcelerator.com/products/titanium-desktop/