Is there a library for testing the functionality of already compiled binaries? Something like unit tests but for already compiled executables, that should allow me to specify and verify rules regarding the behavior of the program for specific inputs and scenarios. I'm specifically interested in something targgetting the .NET platform, but I'd also like to know if there are platform-agnostic tools for this.
Asked
Active
Viewed 143 times
0
-
1For .NET binaries, you can always use Reflector and then make your tests exactly how you want them ;-P – Robert Fraser Nov 24 '09 at 19:25
-
I know, I'm looking for a piece of software to facilitate this process. – luvieere Nov 24 '09 at 19:28
-
I understand the question. Are you trying to use a testing tool (e.g. NUnit) on an already compiled binary? If so, what's the problem? – Aviad Ben Dov Nov 24 '09 at 19:38
-
The question I would ask myself is "What happens when a test fails?" If the answer is "fix it" then you need access to the source, in which case you may as well just test your source code from the start. – Andy West Nov 24 '09 at 19:41
-
Nope, not fix it, but rather exploit it ;) – luvieere Nov 24 '09 at 19:51
-
Oh, well that's a different story then. :) – Andy West Nov 24 '09 at 19:56
1 Answers
2
See the answers in this thread. There are a lot of tools to automatically generate tests from a compiled .Net binary. The biggest winner seems to be PEX which uses the Z3 constraint solving engine to explore the code. In English, this means it can figure out what classes of input will cause each path of the code to execute.

Community
- 1
- 1

Steve Rowe
- 19,411
- 9
- 51
- 82