Testing — Why bother?
Professor Larry Heimann Carnegie Mellon University Information Systems Program
Testing Why bother? Professor Larry Heimann Carnegie Mellon - - PowerPoint PPT Presentation
Testing Why bother? Professor Larry Heimann Carnegie Mellon University Information Systems Program Why do testing? Comic of the Day... Class example: romanic_testing Get the code at https://github.com/profh/romanic_testing Unit testing
Testing — Why bother?
Professor Larry Heimann Carnegie Mellon University Information Systems Program
Why do testing?
Get the code at https://github.com/profh/romanic_testing
Unit testing assertions
ActiveSupport::TestCase
integration (full MVC stack).
a single test that gets executed by the framework
teardown method
class under test
More on unit testing
rails generate scaffold
executing a particular file (e.g., ruby test/unit/owner_test.rb)
grading phases). These coverage tools are not perfect and especially vulnerable to false positive readings (i.e., says you have full coverage when you do not). No substitute for your own testing analysis.
Get the code at https://github.com/profh/PATS_67272
pItlh