TS 69 CNDUnitTests

CND 6.9 features (CND69Plans)
Features: C/C++ Unit Tests Multiple Hyperlinks Doxygen Fortran Makefiles
Test scenarios: C/C++ Unit Tests Multiple Hyperlinks Doxygen Fortran Makefiles

C/C++ Pack Test Specification for C/C++ Unit Tests support

Author: Valeriy Soldatov
Version: 0.1
Lastupdate: 16.04.2010
Introduction: Test specification for C/C++ Unit Tests support in NetBeans 6.9 C/C++ Pack

Contents


Test suite: "C/C++ Simple" tests

Purpose: Verify "C/C++ Simple" tests in NetBeans C/C++ Pack 6.9
Comment: -

  1. Check "C Simple" tests
    1. New Project > C/C++ > C/C++ Application
    2. Specify a project name and location.
    3. Select "C" in list box
    4. Let the Create Main File check box checked
    5. Let the Set as Main Project check box checked
    6. Press Finish button
    7. Call context menu on "Test Files" logical folder and select "New Test..." menu item
    8. Type "Test1" and press OK button
    9. Call context menu on "Test Files|Test1" logical folder and select "New|Other..." menu item
    10. Select "C|C Simple Test" and press Next button.
    11. Specify a file name and press Finish button
    12. Call context menu on project node and select "Build" menu item
    13. Call context menu on "Test Files" logical folder and select "Test" menu item
      File:CndUnitTests.png
    • EXPECTED RESULT: "Test Results" tab is appears. 1 test passed, 1 test failed
  2. Check "C++ Simple" tests
    1. New Project > C/C++ > C/C++ Application
    2. Specify a project name and location.
    3. Select "C++" in list box
    4. Let the Create Main File check box checked
    5. Let the Set as Main Project check box checked
    6. Press Finish button
    7. Call context menu on "Test Files" logical folder and select "New Test..." menu item
    8. Type "Test1" and press OK button
    9. Call context menu on "Test Files|Test1" logical folder and select "New|Other..." menu item
    10. Select "C++|C++ Simple Test" and press Next button.
    11. Specify a file name and press Finish button
    12. Call context menu on project node and select "Build" menu item
    13. Call context menu on "Test Files" logical folder and select "Test" menu item
      File:CndUnitTests.png
    • EXPECTED RESULT: "Test Results" tab is appears. 1 test passed, 1 test failed

Test suite: CUnit tests

Purpose: Verify CUnit tests in NetBeans C/C++ Pack 6.9
Comment: -

  1. Check CUnit tests
    1. New Project > C/C++ > C/C++ Application
    2. Specify a project name and location.
    3. Select "C" in list box
    4. Let the Create Main File check box checked
    5. Let the Set as Main Project check box checked
    6. Press Finish button
    7. Call context menu on "Test Files" logical folder and select "New Test..." menu item
    8. Type "Test1" and press OK button
    9. Call context menu on "Test Files|Test1" logical folder and select "New|Other..." menu item
    10. Select "C|C CUnit Test" and press Next button.
    11. Specify a file name and press Finish button
    12. Call context menu on "Test Files" logical folder and select "Properties" menu item
    13. Press on "..." button in Linker|Libraries
    14. Press on "Add Option..." button in "Libraries" window
    15. Select "Other Option" mode and type "-lcunit". Press OK button
    16. Press OK button
    17. Call context menu on project node and select "Build" menu item
    18. Call context menu on "Test Files" logical folder and select "Test" menu item
    • EXPECTED RESULT: "Test Results" tab is appears. Both tests passed

Test suite: CppUnit tests

Purpose: Verify CppUnit tests in NetBeans C/C++ Pack 6.9
Comment: -

  1. Check CppUnit tests
    1. New Project > C/C++ > C/C++ Application
    2. Specify a project name and location.
    3. Select "C++" in list box
    4. Let the Create Main File check box checked
    5. Let the Set as Main Project check box checked
    6. Press Finish button
    7. Call context menu on "Test Files" logical folder and select "New Test..." menu item
    8. Type "Test1" and press OK button
    9. Call context menu on "Test Files|Test1" logical folder and select "New|Other..." menu item
    10. Select "C++|C++ CppUnit Test" and press Next button.
    11. Specify a file name and press Finish button
    12. Call context menu on "Test Files|Test1" logical folder and select "New|Other..." menu item
    13. Select "C++|C++ CppUnit Runner" and press Next button.
    14. Specify a file name and press Finish button
    15. Call context menu on "Test Files" logical folder and select "Properties" menu item
    16. Press on "..." button in Linker|Libraries
    17. Press on "Add Option..." button in "Libraries" window
    18. Select "Other Option" mode and type "-lcppunit". Press OK button
    19. Press OK button
    20. Call context menu on project node and select "Build" menu item
    21. Call context menu on "Test Files" logical folder and select "Test" menu item
    • EXPECTED RESULT: "Test Results" tab is appears. 1 test passed, 1 test failed
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo