Tag Info

New answers tagged

0

There's a lot of them. 2 popular ones that are integrated into most Java IDE's are testng and junit.


1

Here's some ideas from similar tests: Randomize, you are not smarter then the designer so don't try to find the hole in the design- randomize your tests Vary load conditions from light to 100%+ on each task and on all of them together Look for producer-consumer situations that can hang tasks Look for accesses to peripherals and IO The bottom line is that ...


0

You want to have known database, so results are what your test expect. if someone is changing the database, results might not match what your test expect, and tests will fail. One way is to use mocks and stubs. Another way is to use database with known data which change in controlled manner (and you will have to fix your test if they will break as a results ...


1

Although I have never used them, it seems Unity released their own set of testing tools. See their introduction blogpost: http://blogs.unity3d.com/2013/12/18/unity-test-tools-released/ See their examples: http://blogs.unity3d.com/2014/05/21/unit-testing-part-1-unit-tests-by-the-book/ Get it from the Asset store: ...


2

Unit testing aims to test a single piece of code, which usually provides a single function. Database querying belongs to an API in your case and it is transparent to your app, so you cannot test a database with unit testing in your app. Let's say you would like to sort json results from API search. To test the sorting method you can have, public ...



Top 50 recent answers are included