C++test about resource parameters and Include/exclude parameter descriptions

Source: Internet
Author: User
Tags alphanumeric characters

C++test Tools: parasoft®c/c++test® is a professional development testing solution for the C and C + + languages, and has been widely proven to be an automated best practice solution for improving software development efficiency and code quality.   If you need to use C++test's command line for automated test analysis, you need to use the CPPTESTCLI command, and typically if you need to set up a filtering scan, consider using the following three key parameter options:   -resource% resource%    Specifies a workspace RESOURCE path%resource% to add to the test scope.    use Multiple times to specify multiple resources. Use quotes if the    resource path contains spaces or other non-alphanumeric Characters.  &nbs P If%resource% is a ". Properties" file, the value of corresponding to the    key "Com.parasoft.eclipse.checker. Core.resources "would be interpreted    as a colon (:)-separated list of resources. Only one properties file can    is thus specified. If no resources is specified on the command-line,    the whole workspace would be tested.    examples:     -resource "MyProject"      -resource "/myproJect/src "     -resource"/myproject/src/myclass.cpp "     - Resource Testedprojects.properties-include%pattern%-exclude%pattern%    Specifies files to BES included/excluded during testing.    Patterns specify file names or paths, with the wildcards * and? accepted    and the special wildcard * * Used to specify one or more path name segments.    E xamples:     -include **/bank.cpp (test Bank.cpp files)      - Include **/atm/bank/*.cpp (test all, CPP files in folder Atm/bank)      -include c:/atm/bank/ Bank.cpp (test only c:/atm/bank/bank.cpp file)      -exclude **/internal/** (test Everything except files in folder "internal")      -exclude **/*test.cpp (Test everything Except files that end with Test.cpp)     List of patterns can be speCified in a file with. LST extension.    all line in. lst file was treated as a single pattern.     example:     -include c:/include.lst      where Include.lst contains:        **/bank.cpp         **/atm/bank/*.cpp        C:/atm/bank/bank.cpp further notes:
    • The resource parameter is typically used to specify the project name to be tested, and if multiple items need to be specified, it is recommended to use a. lst file, in the LST file, to set the items to be scanned as follows:
Shapes ATM bugtest Note: 1) The project here must be the project that has been imported into the workspace, if it does not exist, it will be an error; 2) the project name in the file does not need to be enclosed in parentheses; 3) The file name here must end with a. lst.
    • Include and exclude parameters: This is a code file or folder that is used to specify a specific path or a fixed mode, and it is generally recommended to use a. lst file to scan files in the properties file that contain (include) or exclude (exclude). Usually the Include.lst file is as follows:
**/bank.cpp **/atm/bank/*.cppc:/atm/bank/* C:/atm/bank/bank.cpp

C++test about resource parameters and Include/exclude parameter descriptions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.