1 / 13

Microsoft Pex : обзор

Microsoft Pex : обзор. Сергей Попов Независимый разработчик. Microsoft Pex : обзор. Тестируемый код. Pex Exploration: Динамический анализ кода Подбор параметров для лучшего Code Coverage. Результат : Отчет Unit- тесты. Microsoft Pex. Демонстрация. Тестируемый код.

wanda-todd
Télécharger la présentation

Microsoft Pex : обзор

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Microsoft Pex: обзор Сергей Попов Независимый разработчик

  2. Microsoft Pex: обзор Тестируемый код Pex Exploration: Динамический анализ кода Подбор параметров для лучшего Code Coverage Результат: Отчет Unit-тесты

  3. Microsoft Pex Демонстрация

  4. Тестируемый код

  5. Pex:исправление ошибок Демонстрация

  6. Pex:сохранение тестов Демонстрация

  7. Параметризованные тесты • Необходима инициализация тестового окружения • Входные параметры имеют ограничения

  8. Тестируемый код • intGetColumnIndex(string value): • value != null • value != String.Empty • value.StartsWith("A", "B", "C", ...) • value.EndsWith("1", "2", "3", ...)

  9. Pex:параметри-зованные тесты Демонстрация

  10. Pex: выводы • Pex != замена «ручных» unit-тестов • Pex = анализ кода, поиск проблемных наборов аргументов • Pex = быстрое создание набора тестов для унаследованного кода

  11. Дополнительная информация • Pex and Moles - Isolation and White box Unit Testing for .NET • http://research.microsoft.com/pex

  12. Как установить? • Pex and Moles – Downloads • http://research.microsoft.com/en-us/projects/pex/downloads.aspx • Academic (Free) • Некоммерческое использование • x86 • VS2008 и командная строка • MSDN Subscribers • x86 и x64 • VS2008,VS2010 и командная строка

  13. Контакты Сергей Попов E-mail: psg@sergeypopov.info Блог: http://sergeypopov.info/ Twitter: http://twitter.com/psg1234

More Related