cpptest培训手册parasoft c test traing presentation

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Scope
▪ Advanced Topics on Unit Test
▪ Stubs ▪ Factory Functions ▪ Parameterization ▪ Runtime Error Detection
▪ Assertions
▪ Application Monitoring
▪ Coverage
▪ The key to effective usage is uniform application with minimal impact on the developers workflow
Parasoft Proprietary and Confidential
Parasoft Test – Functionality Overview
▪ Runtime Error Detection
Parasoft Test – Overview
▪ Purpose: Defect prevention
▪ Task management and distribution (Supports all aspects of project management)
Importing a Project
What is a BDF
▪ #43;test
▪ Text file with deconstructed build options
------- cpptesttrace v.9.4.0.10 ------working_dir=C:\Users\cfan\ATM project_name=ATM arg=C:\cygwin\bin\g++.exe arg=-g arg=-Iinclude arg=-o arg=obj/ATM.o arg=-c arg=ATM.cxx
▪ The primary question is…
▪ Do you have the ability to apply these technologies uniformly as part of a process and get results?
▪ NOT do you have access to these technologies?
Process
▪ Testing
▪ Suppressions Violations
▪ Best Practices
Agenda
▪ Part 3
▪ Part 4
▪ Unit Test
▪ Concepts and Strategies ▪ Generating Unit Tests ▪ Stubs ▪ File Scope and Project
Parasoft Proprietary and Confidential
Parasoft C++test – Project Setup
Terminology
▪ Eclipse Workspace
▪ Directory path that you had to specify at startup ▪ Contains a collection of projects ▪ Has a “.metadata/” folder and a “.cpptest” folder
▪ Workflow is natural ▪ Work is task-based and focused on results
▪ THE KEY is uniform implementation in the group
▪ If implemented as a group practice, the result is huge productivity improvements
Parasoft C++test Training
Cathy Fan September 24, 2019
Agenda
▪ Part 1
▪ Parasoft Test Overview
▪ Part 2
▪ Project Setup
▪ Automated Peer Code Review
▪ Terminology ▪ Import
▪ Eclipse Project
▪ Has a “.project” file
Project Setup
▪ C++test needs to know
▪ Compiler ▪ Build commands ▪ Build options ▪ Files
▪ Methods
▪ Import project from embedded IDE ▪ Use existing build system ▪ Build data file
project management)
Overall Implementation
1 Create code and/or Unit Tests (auto or manual) 5 Deliver results within IDE
Parasoft Proprietary and Confidential
▪ Static analysis ▪ Automated peer code review (Language independent) ▪ Unit testing ▪ Runtime analysis ▪ Coverage analysis ▪ Task management and distribution (Supports all aspects of
▪ Overview ▪ Pre-commit vs. Post-commit
▪ BDF
▪ Static Analysis
▪ Terminology ▪ Workflow
▪ Authors, Reviewers, Observers ▪ Workflows ▪ Auditing the Code Review
4 Cross reference 2 Check into Source
3 Execute nightly
Togetherness
▪ Single, uniform interface
▪ Same interface for all languages
▪ Support for all technologies needed in development
相关文档
最新文档