Your SlideShare is downloading. ×
Beyond Unit Testing
Beyond Unit Testing
Beyond Unit Testing
Beyond Unit Testing
Beyond Unit Testing
Beyond Unit Testing
Beyond Unit Testing
Beyond Unit Testing
Beyond Unit Testing
Beyond Unit Testing
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Beyond Unit Testing

224

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
224
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Nordic Perl Workshop 2013 Beyond Unit Testing Søren Lund (slu) slu@369.dk
  • 2. We all know about unit testing  ”t” directory / *.t scripts  prove command  or make test  Integrated part of CPAN/Perl culture for many years
  • 3. Testing Web Application  Multi-tier   Back-end (Perl)  Front-end (JavaScript)   Persistence (SQL / SP) Web Services Simple unit testing doesn't really cut it
  • 4. Selenium IDE  Firefox Add-on  What it user/browser sees  Black box testing  Simply record a flow  Add assertions  Build test cases and test suites  You can even do dynamic stuff with JavaScript
  • 5. soapUI  Stand-alone GUI  Web Service testing (WSDL)  Create test cases and test suites  Dynamic stuff using embedded Groovy  Also handles REST and more
  • 6. Apache JMeter  Stand-alone GUI  Stress and performance testing  Mainly HTTP(S), but also e.g. FTP or JDBC  Use as a proxy to record requests/responses  Visual programming language  Output as graphs and/or CSV data
  • 7. The Nightly Build  You can run Selenium IDE test suites from CLI  On a headless server use Xvfb  You can run soapUI test suites from CLI  You can run JMeter test suites from CLI  Which means you can easily add them to CI (e.g. Jenkins)
  • 8. Why go beyond? — the average defect detection rate is only 25 percent for unit testing, 35 percent for function testing, and 45 percent for integration testing. Steve McConnell, Code Complete
  • 9. Testing is not enough … software testing alone has limited effectiveness — the average defect detection rate is only 25 percent for unit testing, 35 percent for function testing, and 45 percent for integration testing. In contrast, the average effectiveness of design and code inspections are 55 and 60 percent Steve McConnell, Code Complete
  • 10. Testing is not enough … software testing alone has limited effectiveness — the average defect detection rate is only 25 percent for unit testing, 35 percent for function testing, and 45 percent for integration testing. In contrast, the average effectiveness of design and code inspections are 55 and 60 percent Steve McConnell, Code Complete

×