大约有 15,480 项符合查询结果(耗时:0.0327秒) [XML]
How do I run a single test with Nose in Pylons
I have a Pylons 1.0 app with a bunch of tests in the test/functional directory.
I'm getting weird test results and I want to just run a single test.
The nose documentation says I should be able to pass in a test name at the command line but I get ImportErrors no matter what I do
...
xUnit.net: Global setup + teardown?
This question is about the unit testing framework xUnit.net .
4 Answers
4
...
JUnit vs TestNG [closed]
At work we are currently still using JUnit 3 to run our tests. We have been considering switching over to JUnit 4 for new tests being written but I have been keeping an eye on TestNG for a while now. What experiences have you all had with either JUnit 4 or TestNG, and which seems to work better fo...
dd: How to calculate optimal blocksize? [closed]
...ning THE optimal output block size, I've written the following script that tests writing a 128M test file with dd at a range of different block sizes, from the default of 512 bytes to a maximum of 64M. Be warned, this script uses dd internally, so use with caution.
dd_obs_test.sh:
#!/bin/bash
# S...
Append values to query string
... a workaround that works for both absolute and relative paths, written and tested in .NET 4:
(small note: this should also work in .NET 4.5, you will only have to change propInfo.GetValue(values, null) to propInfo.GetValue(values))
public static class UriExtensions{
/// <summary>
/...
How to run Rails console in the test environment and load test_helper.rb?
...Factory Girl" gem, with is used to create objects to use in unit and other tests. I'd like to go to the console and run different Factory Girl calls to check out what's happening. For example, I'd like to go in there are do...
...
django test app error - Got an error creating the test database: permission denied to create databas
When I try to test any app with command (I noticed it when I tried to deploy myproject using fabric, which uses this command):
...
Is there a simple way to remove multiple spaces in a string?
...eturn, formfeed)" (thanks to hhsaffar, see comments). I.e., "this is \t a test\n" will effectively end up as "this is a test".
share
|
improve this answer
|
follow
...
Disable migrations when running unit tests in Django 1.7
...
like syncdb did in 1.6. I defined a new settings module just for unit
tests called "settings_test.py", which imports * from the main
settings module and adds this line:
MIGRATION_MODULES = {"myapp": "myapp.migrations_not_used_in_tests"}
Then I run tests like this:
DJANGO_SETTIN...
AttributeError: 'module' object has no attribute 'tests'
...finally figured it out working on another problem. The problem was that my test couldn't find an import.
It looks like you get the above error if your test fails to import. This makes sense because the test suite can't import a broken test. At least I think this is what is going on because I fixed...