We've started using Part Cover to track test code coverage of our application. IMO its a great tool for getting an overall score for your tests and for highlighting test areas where you might have been a bit lazy with tests, but today I wrote a test and realised that it didn't really test anything useful, it just increased my coverage!
...
Two questions about unit tests.
I've been writing unit tests for
a while, however they're usually to
test classes I already had written.
Recently I read an article
(mind you an old article) that says
you should write unit tests before
you begin writing your code.
Does anyone actually follow this
methodology? It seems like a good
idea...
I'm trying to get Capybara running in a simple Ruby script -- i.e. without/outside of Rails. Here's the script:
require 'rubygems'
require 'capybara'
require 'capybara/dsl'
include Capybara
Capybara.current_driver = :selenium
Capybara.app_host = 'http://www.google.com'
visit('/')
The problem is that when I run this I get this error...
AutoIt is a Windows tool to automate UI tasks, for testing or scripting. It supports basic commands like moving the mouse, clicking its buttons, simulating keystrokes. Beyond that it also recognizes windows controls and can interact with them easily. It sports a scripting language to write macros, with loops, ifs, etc.
I'm looking for a...
Hello guys,
I am new to testing so I am trying to test some random things that I found on the Internet. These are the test case that I thought for testing these things. Any help to assist me is very much appreciated.
1) Testing a text box.
Test cases:
Unit tests:
Passing alphabets from [a-z], [A-Z]
digits [0-9] , special symbols
test ...
I am looking for (list of) projects that use py.test.
I am new to testing, and want to use py.test. I need examples from projects, so i can use py.test extensively. The documentation is good for py.test but is too fragmented to get a good grasp. I have a vague idea of how it works. I saw the py.test video(3hrs) from pycon. But need some...
I'm looking for a simple to setup and to use solution to test the validity or health of a .net web application.
The ideal solution would allow the developers to add his important tests as functions just like In unit testing and the ui would look like any unit testing running application, but in a web pages.
Typical tests: permission pr...
In Rails 3 rc testing of my controller I can't login with user from fixtures nor (:email=> '', :password =>''). The session object is created but it's user is empty.
Everything done just like in manual. And it was worked in rails 2.3.8.
I've tryed to:
require 'test_helper'
require 'authlogic/test_case'
class UsersControllerTest < Act...
What is the best way to unit test code that generates images? Say, for example, a class that generates a plot or a chart?
...
So for this model method:
def tax_rate
tax_rate = 0.0
tax_rate += STATE_TAX if state_taxable? #STATE_TAX = 0.1
tax_rate += IMPORT_TAX if imported? #IMPORT_TAX = 0.05
tax_rate
end
This test fails:
@item.update_attributes({:state_taxable => true,
:imported => true,
:price ...
In our application, there are a bunch of unit test console applications that have been written using the boost unit test framework. These test applications form part of the Visual Studio Solution (we are using VS2008 Professional).
Is it possible to run these as part of a Teamcity build?
So far I have configured Teamcity to check out ...
Hello,
I want to make an application for iPhone, as an introduction to programming in ObjC and Cocoa. I'm .net developer, so programming on Mac is a whole new world to discover for me :)
My application will be talking with web service. I want to use iCuke as a testing framework, and I don't want to connect to that webservice every ti...
I remember one time my friend told me about this great app that lets developers test a web site on multiple IE instances. I am just wondering whether any of you guys know the name of this app.
...
When you write Given When Then specs, do you prefer to list elements in a set in 1 When statement, or do a separate spec for each?
i.e.
GIVEN a book
WHEN category is "Fanatsy", "Sci-Fi", or "Horror"
THEN Buy it.
vs.
GIVEN a book
WHEN category is "Fanatsy"
THEN Buy it.
GIVEN a book
WHEN category is "Sci-Fi"
THEN Buy it.
...
I have a new android app I put on the marketplace a few days ago. I did quite a bit of testing on my moto droid before publishing it and tried to be very thorough. Well, I got some negative comments back on how it didnt run right on someone's EVO 2.2 or X10 (didnt even know what that was at first). Well, it runs perfect on my phone. ...
I am writing tests against our Caching mechanism and I want to be sure that what goes into the cache is the same as what comes out, ie that all properties match. Here is a fictional example of how I would like it to work
[Test]
public void add_client_model_member_to_cache_then_retreve()
{
//arrange
MemcachedC...
Attempt to make a stub data for custom Silverlight 4 control failed.
Here is XAML code:
<UserControl x:Class="VfmElitaSilverlightClientView.Pages.FieldItem"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expressio...
I've released an app to the market. It seems to work fine on some devices, and have completely weird behaviour on others. It runs fine in a VM configured to match the setup of these devices.
In general though, given that some phones behave in unexpected ways, is there any other way of getting test data for certain devices without actual...
Hello,
How do i automate the process of filling up form? How do i parse each field and fill it with junk data? I want to test my website. I actually want to hack this link :-
http://www.placement.vnsguit.org/placementIt.aspx
If any software is available that i can immitate while programming then it will be very helful.
Thanks in adva...
I've been Google-ing around for a while trying to figure out a fix for this with no real luck. I'm getting this when trying to run a jBehave test -
org.jbehave.scenario.errors.ScenarioNotFoundException: Path '$Path_to_jBehave_Directory'
could not be found by classloader sun.misc.Launcher$AppClassLoader@f4a24a ...
My textual scenari...