We have a system that has some bash scripts running besides Java code. Since we are trying to "Test Everything That Could Possibly Break" and those bash scripts may break, we want to test them. The problem is it is hard to test the scripts.
Is there a way or a best practice to test bash scripts?
Or should we quit using bash scripts and...
Is there a consensus about the best place to put Python unittests?
Should the unittests be included within the same module as the functionality being tested (executed when the module is run on its own (if __name__ == '__main__', etc.)), or is it better to include the unittests within different modules?
Perhaps a combination of both app...
EDIT: This issue is already submitted on Github. Changing the "Act" part to this will make the test pass
var result = Adresse.All()
.Where(x => x.AdresseX == txt1 && x.PostBy == txt2)
.FirstOrDefault();
[TestMethod]
public void WTF()
{
//Arrange
string txt1 = "Vings...
I'm working on a large GUI Program and even after years of development I still have not a single test case. I removed a lot of the needs by using Eiffel together with disciplined coding and Design By Contract.
But sometimes I feel that having unit tests might help me. But whenever I try to write some down I soon run into the problem wi...
I get intermittent errors in my log files
System.Web.HttpException
Message: The file '/Stylesheet.aspx' does not exist.
I dont have this file in my code base. This error seems to be caused by .net not by any user trying to directly access this file.
Any thoughts?
...
I am going to ask users on public forums to take part in my app beta testing using ad-hoc method. So if user interested in testing/reviewing he sends me UUID and I send him app binary.
The main question: is it safe to give anyone app binary file? I heard some terrible stories on Apple iphone developer forums that some guy found his app ...
I got Selenium IDE, followed this post, got to
python test_default_server.py
and it complains Firefox is not in my path:
Please add the directory containing ''firefox.exe'' to your PATH environment
variable, or explicitly specify a path to Firefox 3 like this:
*firefox3c:\blah\firefox.exe
I could change my PATH environment variable...
In the test that I want to run using CTest I should be adding the test that I want to run, with the following command:
add_test(TestName ExeName)
problem is what if I want to supply an argument to the TestName, where do I put it?
how do I run ctest individually without cmake in unix command line in this context?
...
I am trying to simulate a scenario where connection to the server of one process is down while the connection to another server is up. Just pulling the network cable won't work in my case since I need another process connection to stay up.
Is there any tool for this kind of job? I am on Windows. Thanks!
...
Here is a list of available tools:
http://www.pairwise.org/tools.asp
But want to draw out personal experiences of SO members.
Current tool is FireEye but we are looking for other tools.
...
I have some pyunit unit tests for a simple command line programme I'm writing. Is it possible for me to generate test coverage numbers? I want to see what lines aren't being covered by my tests.
...
I'm attempting to write some tests using the Silverlight Unit Test Framework (the unsupported, unofficial MS library Microsoft.Silverlight.Testing). I need to impersonate three different users when testing some functionality of our application.
Our application is for internal use at our company, so the authenticated user may get differe...
Hi All,
I am searching for a web service which can record the actions done by my clients on my website. There is a service known as "Userfly", but this service is a paid service. They offer the service for free 10 recordings per month only. If you guys know something similar to this but for "FREE" please share and also i would like get ...
Hi;
I am looking for a free test smptp server which can save emails in to files for my development tests. Since my development environment is windows I prefer test email server to run on windows but I can consider to install any other linux based alternatives.
...
I read the latest coding horror post, and one of the comments touched a nerve for me:
This is the type of situation that test driven design/refactoring are supposed to fix. If (big if) you have tests for the interfaces, rewriting the implementation is risk-free, because you will know whether you caught everything.
Now in theory I l...
In a Linux VM (Vmware workstation or similar), how can I simulate a failure on a previously working disc?
I have a situation happening in production where a disc fails (probably a controller, cable or firmware problem). Obviously this is not predictable or reproducible, I want to test my monitoring to ensure that it alerts correctly.
I...
So I have some unit tests that pass in Xcode 3.1 / Leopard. These use SenTestingKit in an iPhone app project and are built/run in a separate "Test" target. I just upgraded to Xcode 3.2 on Snow Leopard and the tests seem to run (I get logs in Console.app and see them passing), but Xcode beachballs and must be force quit'd after they are r...
Should the test plan be kept in the version control with the code ? That is, the test plan and the code are put under the same version control system and have the same revision numerating. I am not talking about unit test code, but a test plan document populating with manual test cases. There are some web-based test case management syste...
I'd like to make sure a given view in my test is fetching an external URL properly. It uses urllib2 (but this shouldn't matter, since it's blackbox testing). Perhaps a temporary local server of some kind? Is there an app that does this already? (My Googling has failed me.)
...
What strategies have Perl people used when mocking Moose objects that they will inject into other Moose objects as type-constrained attributes?
Test::MockObject::Extends doesn't seem to play well with Moose. I need the object to blessed as a specific package though so a vanilla Test::MockObject won't work. I'm sure other folks have had ...