tdd


How to TDD (Test-Driven-Development) a model that is related to data persistence?


Assume that I have a boolean that indicates whether the app is launched for the very first time or not (so I can show some guides for the first time)
I encapsulated that boolean into a model class (may be called AppContext)
class AppContext {
var isFirstLaunch: Bool
var otherAppScopeVar: Int
// ...
}
Can I test this kind of things?
you shouldn't!
you should only test your application behavior in those two scenarios.
you need to execute your application after injecting that data with its two different states in order to test both scenarios.

Related Links

Confused on TDD wrappers/adapters
Am I allowed to check in a failing test
How to TDD for CouchDB with CouchApp?
How can I test an interface without implementing it first?
Run a single test in Flash Builder?
Discussion: Working TDD in a Scrum context
When applying TDD, what heuristics do you use to select which test to write next?
Unit testing: is “good enough” good enough?
Implementing User Stories the Agile Way
Should I only be testing public interfaces in BDD? (in general, and specifically in Ruby)
TDD assumes interfaces are defined already; how to cope?
RhinoMock : Mocks Vs StrictMocks Vs DynamicMocks
Ideas on how to TDD application that needs to retrieve user name from system environment
ATDD versus BDD and the proper use of a framework
Bizmonade - testing orchestration that receives ANY document
Selenium vs Celerity? [closed]

Categories

HOME
webpack
proxy
openstack
bpmn
jsp-tags
programming-languages
google-oauth
spring-jdbc
yarn
icloud
google-project-tango
azure-media-services
bs4
cloudkit
spring-kafka
imacros
google-cloud-spanner
size
visual-studio-cordova
circuit
foselasticabundle
graphlab
django-admin
highlight.js
google-static-maps
pugjs
propel
database-replication
introduction
dbext
emulator
jtextfield
plunker
tibco-mdm
cultureinfo
jndi
emgucv
poltergeist
typo3-6.2.x
neo4j-spatial
ping
elasticsearch-net
opentype
saas
log4js-node
procdump
uisplitview
http-get
noraui
y86
mmenu
io-redirection
libraries
libvpx
dynamics-crm-2013
withings
twitch
splice
cookiecutter-django
ncalc
powershell-dsc
firebase-admin
apple-news
long-polling
jlink
return-value
fancybox-2
crypt
r-forge
epson
imanage
minimization
word-vba-mac
nested-sets
google-feed-api
spring-android
android-textview
phishing
hill-climbing
essence
rtbkit
marching-cubes
retina
jqgrid-formatter
coveralls
generic-programming
modalpopup
clicktag
typekit
xojo
valuechangelistener
xsockets.net
ftps
jquery-mobile-dialog
random-seed
clipper
specification-pattern
ticoredatasync
regsvr32
bubble-chart
dotnethighcharts
assembly-loading
gnustep
external-accessory
appendto
datareader
createwindow
digest-authentication
bespin
data-driven
virtual-functions
project-hosting
nerddinner
procedural-music
geneva-server
multiple-languages
signal-handling

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App