11

Click here to load reader

How We Build Confidence with Continuous Integration and Automated Testing

Embed Size (px)

DESCRIPTION

An overview of continuous intergration and automated testing

Citation preview

Page 1: How We Build Confidence with Continuous Integration and Automated Testing

How We Build Confidence with

Continuous Integration and

Automated Testing

Page 2: How We Build Confidence with Continuous Integration and Automated Testing

Introduction

• Gareth Marland

• Senior Developer at Rand Worldwide

• Clarity for Revit Server

• Cahoot – http://www.yourcohort.com

Page 3: How We Build Confidence with Continuous Integration and Automated Testing

The Problem

• Small development team

• No dedicated testing team

Page 4: How We Build Confidence with Continuous Integration and Automated Testing

The Problem

• Unit Tests

▫ Good at testing code and logic

▫ Unit tests can’t be ran on views

• Regression testing is always problematic

Page 5: How We Build Confidence with Continuous Integration and Automated Testing

Our Solution

• A combination of 2 things:

▫ Continuous integration

▫ Automated front end testing

Page 6: How We Build Confidence with Continuous Integration and Automated Testing

Continuous Integration

• What is continuous integration

▫ Builds, runs unit tests and deploys every check in

▫ Test is wiped

▫ Sandbox for stable versions and testing

• We maintain 3 server Build, Test and Sandbox

• Constant testing of new features

Page 7: How We Build Confidence with Continuous Integration and Automated Testing

Front End Testing

• Test the front end functionality of the site

• Easy to create using the Firefox plugin

• Export and add detail in code

• Selenium - http://seleniumhq.org/

Page 8: How We Build Confidence with Continuous Integration and Automated Testing

Demo

Page 9: How We Build Confidence with Continuous Integration and Automated Testing

Front End Testing

• Add to the continuous build script to run every check in

• Combined with regular unit tests you automatically catch it coming and going

Page 10: How We Build Confidence with Continuous Integration and Automated Testing

Conclusion

• Continuous integration allows us to constantly test newly added features

• Front end tests give confidence

• Sleep easy

Page 11: How We Build Confidence with Continuous Integration and Automated Testing

Q&A