TS 60 Shell

Shell file Test Specification for NetBeans 6.0

Authors: Radim Roska
Version: 1.0
Last update: 3th July 2007
Introduction: This is test specification of shell scripting language support in NetBeans IDE. Netbeans provides very basic support : simple syntax highlighting, code formatting.



Test suite: Ide support

Purpose: This test suite checks that sh files are correctly configurable in IDE options and its possible to open,create sh files.
Setup: C/C++ plugin activated.

  1. Checking options for sh files
    1. Invoke Tools | Options....
    2. Select Editor , then Code Templates tab and ensure there is Sh file in language combobox
    3. add some new abbreviation and then try to use it.., e.g. for ifh+tab
if [True ];then echo "hello world" fi
    1. Select Fonts&Colors , then Syntax tab and select Sh file category in language combobox
    2. There are categories like identifier, keyword...by selecting these categories correct element in preview should be marked
    • EXPECTED RESULT: all options exists and are correctly configurable
  1. New shell script file
    1. Invoke File | New File... from main menu.
    2. Select Empty file option from Other category and press Next
    3. name file with .sh extension, e.g. shscript.sh, finish
    • EXPECTED RESULT: new empty file is opened with proper icon in tab

Test suite: Syntax highlighting support

Purpose: This test suite checks that syntax highlighting works correctly.
Setup: C/C++ plugin activated.

  1. Syntax highlighting
    1. Copy whole content of this document into file created in 1st test suite.
    2. Compare the syntax highlighting of file with this picture.
    • EXPECTED RESULT: all syntax elements has to be highlighted correctly

Test suite: Syntax errors detecting

Purpose: This test suite checks that editor (syntax analyzer) detects not correctly written code.
Setup: C/C++ plugin activated.

  1. String test
    1. Paste into sh file this: echo "this is cool string
    2. Hover with mouse cursor over error mark
    • EXPECTED RESULT: wrongly ended string should be marked as error and error tooltip should be displayed, containing: Unexpected character.

ISSUE 149270

Test suite: Code formatting

Purpose: This test suite checks that code formatting works correctly
Setup: C/C++ plugin activated.

  1. Code indentation
    1. Place cursor to the end of some line and press Enter
    • EXPECTED RESULT: cursor at new line is intended as line before

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