Sonar For the Uninitiated
Manage quality of your software
Across languages/platforms (> 20)
Across projects
Across time
Across multiple axis/depths
A web app for (re)viewing, a back-end for analysis
4
Quality Tools on Mobile
s
s
in
kin
k
)
n
Je
en
od
V
e5
J
c
L
d
n
(X
2)
4) e (L for )
s o (Xco
c
i
e
e
g
o
ge
t
od
C
od erag gin lan alys
/cl
ra
e
Bo bjXc
Xc ov
lu (C an
nt
v
(
(
/
p
u
o
O
t
it
nit e c de Lint ality
nit ar
g Uni M
co
e c Un
U
c
U
d
d
n
o
an C
GT Co
XC So
slo
O
GH
OC Co Xc OC Qu
Cl
)
e3
19xx
2007
2009
2011
M)
2012
2013
2008
First iOS
SDK
TESTS
QUALITY
Quality Tools on Mobile
Sonar
Objective-C
Plugin
sic
a
- Bics
1
.0. etr
v0 m
n
sa
t
t
L
es
es ge
C
u
T
eq
- O .1 - era
r
ull
0.2 v0.3 cov
v
P
int
7
2012/06
2013/07
2013/10
d
Quality Tools on Mobile
d
n
oi ugi
r
gin
)
nd t-pl
u
ase )
pl )
r A lin
le e
e
d
fo
t r leas
oi mma
t ol s oi d
s e
r
n
(fir t r
nd EclE
Li To ndr
a
a
le
s
a
id
y
n- Co (
tur a (la
sty
r
e o
ro alit ark
e
c
n
av aC
n d Qu
ob Emm
he
m
C
A
J
so
C
2001
2004 2005
2009
2008
First Android SDK
2011 2012 2013
Testing / Quality Tools Integration
Kiwi
UI
Automation
KIF
Frank /
UISpec
UI Testing
GTM
BDD
GHUnit
√
Unit Testing
...
√ X
X
X
X
X
X
X
OCUnit /
XCUnit
OCLint
Quality
*
*
* *
= in roadmap
13
How-to
Install Sonar, Sonar Runner and Sonar
Objective-C plugin
Install prerequisites (xctool, gcovr, oclint)
Configure your project
Run analysis
16
Configure your project
Copy run-sonar.sh in your Xcode project
root folder and make it executable
Copy sonar-project.properties in your Xcode
project root folder
Edit the sonar-project.properties file to
match your Xcode iOS/MacOS project
17
Why Use Sonar?
Mobile projects are small and short, is it
applicable?
Three typical uses cases:
Small and short projects
Assessments
Bigger projects (there are!)
30
Stay in touch!
Objective-C plugin: https://github.com/octotechnology/sonar-objective-c
Sonar Android Lint plugin: https://
github.com/SonarCommunity/sonar-android
Quality Analysis Tools for Android:
https://github.com/stephanenicolas/QualityTools-for-Android
http://fr.slideshare.net/jeromevdl/droidconparis-2013
31