大约有 40,000 项符合查询结果(耗时:0.0360秒) [XML]
How to make junior programmers write tests? [closed]
We have a junior programmer that simply doesn't write enough tests.
I have to nag him every two hours, "have you written tests?"
We've tried:
...
test a file upload using rspec - rails
I want to test a file upload in rails, but am not sure how to do this.
6 Answers
6
...
Testing Abstract Classes
How do I test the concrete methods of an abstract class with PHPUnit?
6 Answers
6
...
IF… OR IF… in a windows batch file
...ly if any one of the OR conditions is true. Then use IF DEFINED as a final test - no need to use delayed expansion.
FOR ..... DO (
set "TRUE="
IF cond1 set TRUE=1
IF cond2 set TRUE=1
IF defined TRUE (
...
) else (
...
)
)
You could add the ELSE IF logic that arasmussen uses on t...
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
...
How to unit test abstract classes: extend with stubs?
I was wondering how to unit test abstract classes, and classes that extend abstract classes.
14 Answers
...
How to compile tests with SBT without running them
Is there a way to build tests with SBT without running them?
3 Answers
3
...
How do I verify jQuery AJAX events with Jasmine?
...
I guess there are two types of tests you can do:
Unit tests that fake the AJAX request (using Jasmine's spies), enabling you to test all of your code that runs just before the AJAX request, and just afterwards. You can even use Jasmine to fake a response...
What's the best strategy for unit-testing database-driven applications?
... layer separate from the business and presentation logic. This makes unit-testing the business logic fairly straightforward; things can be implemented in discrete modules and any data needed for the test can be faked through object mocking.
...
Git branching strategy integated with testing/QA process
...
The way we do it is the following:
We test on the feature branches after we merge the latest develop branch code on them. The main reason is that we do not want to "pollute" the develop branch code before a feature is accepted. In case a feature would not be acce...