Hi all,
Did a dumpdata of my project, then in my new test I added it to fixtures.
from django.test import TestCase
class TestGoal(TestCase):
fixtures = ['test_data.json']
def test_goal(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
When running the test I get:...
In our application we have many versions of the same routine optimized for different kind of processor architectures. During install we run performance tests and select the best version of routine.
Latest processors can boost their frequencies if few cores are in use, so sometimes our tests peeking wrong version of routine. Is there som...
I have a bunch of module tests written in CPPunit with some mocks created by hand. I am looking for a way to migrate them to GoogleTest as smoothly as possible.
Have you tried such an operation?
What was the effort needed?
...
I have software that can launch and control multiple firefox browsers on Ubuntu EC2 images. I need to run a small load test against a QuickTime Streaming server. The stream starts automatically when loaded in a browser that has the QuickTime plugin, so I don't need to automate the stream once it starts.
Alternately, I can also make th...
Hi!
I'm developing GAE application in Eclipse with PyDev and am using gaeunit for testing.
gaeunit generates output in web browser like this:
Traceback (most recent call last):
File "tests\test_user.py", line 9, in test_current_user
user = users.current_user
AttributeError: 'User' object has no attribute 'current_user'
I want ...
I'm trying to write a functional test. My test looks as following:
describe PostsController do
it "should create a Post" do
Post.should_receive(:new).once
post :create, { :post => { :caption => "ThePost", :category => "MyCategory" } }
end
end
My PostsController (a part of it actually) looks as following:
PostController < ...
Hi,
I've got a class with one public method and many private methods which are run depending on what parameter are passed to the public method so my code looks something like:
public class SomeComplexClass
{
IRepository _repository;
public SomeComplexClass()
this(new Repository())
{
}
public SomeComplexClas...
Hi,
I have a request which I am changing using some groovy and property transfers. However after the test case has finished I would like to reset that request to its original code. I am guessing I do this using groovy but am not sure how.
The setup is as follows:
TestSuite1 has a property which is the request.
TestCase1 has a number...
I know the answer may differ for each test framework. But for the ones you know, what should happen?
...
ReSharper 4.5's test runner will run MSTest tests out of the box, and that's what I'm doing. When a test fails, I click on the test to see the stacktrace and the failure reason. The pane I'm clicking in to do this is the "Unit Test Sessions" pane.
The lower half of this pane (or the right half, if you have it configured that way) show...
I have copied a trivial example from the FitNesse Two-Minute example:
package com.mrijk;
import fit.ColumnFixture;
public class Foobar extends ColumnFixture {
private double numerator;
private double denominator;
public void setNumerator(double numerator) {this.numerator = numerator;}
public void setDenominator(doubl...
Is JUnit the best unit testing framwork? Which framework is best for new java projects?
...
Hi,
I just want to know what is actual difference between unit tests and functional tests ? I am asking this because a unit test can also test a function right ?
...
Hello all, I come from a Java/Eclipse background and I fear that I am spoiled by how easy it is to get JUnit and JMock running in Eclipse, and have that GUI with the bar and pass/fail information pop up. It just works with no hassle.
I see a lot of great options for testing in C# with Visual Studio. NUnit looks really nice because it co...
This testing is performed by QA Team to ensure crediblity of the database. Can anyone explain me what are all the constraints a QA Analyst should follow to ensure this ? and what they need to test ?
...
What do you guys recommend for AIR GUI testing?
...
I am not fortunate to have access to Apple Safari 3.0 [which has a WebKit version < 525]. Would someone kindly test a Web page for me, it will return your userAgent string and a simple pass:fail.
In WebKit versions < 525.… [<= Apple Safari 3.0] it should fail and >= 525.… [>= Apple Safari 3.1] it should pass.
I appreciate all your help...
By default, "rake specs" re-creating my test database, using environment's one.
It removes all the data, but not the the auto_increment. So when i'll try to make a new user:
User.blueprint do
login { Sham.login }
email { Sham.email }
end
# the test:
user = User.make
user.id.should == 1
It says, that ID was 1800 (auto_increment w...
Recently I read some articles about some doubts about benefits of acceptance testing, because it is quite costly compared to what it brings. To form my own opinion, I would like to gather as much benefits of automated acceptance testing as possible. Can you help me?
...
I am trying to setup a script that would test performance of queries on a development mysql server. Here are more details:
I have root access
I am the only user accessing the server
Mostly interested in InnoDB performance
The queries I am optimizing are mostly search queries (SELECT ... LIKE '%xy%')
What I want to do is to create rel...