Project

General

Profile

Actions

Task #4818

closed

[template] Configuration files

Added by Alexander Kamkin almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Andrei Tatarnikov
Category:
-
Target version:
Start date:
04/02/2014
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Published in build:
141018

Description

MicroTESK should support a test generation configuration (it can be implemented as template properties).

The set of properties includes:

  1. SL_COMMENT_STARTS_WITH - single-line comment characters (the default value "//").
  2. ML_COMMENT_STARTS_WITH - multi-line comment start start characters (the default value is "/*").
  3. ML_COMMENT_ENDS_WITH - multi-line comment end characters (the default value is "*/").
Actions #1

Updated by Andrei Tatarnikov almost 10 years ago

  • Status changed from New to Open
  • % Done changed from 0 to 10
Actions #2

Updated by Andrei Tatarnikov almost 10 years ago

  • Status changed from Open to Resolved
  • % Done changed from 10 to 100

Implemented in r1947.

The given properties now can be specified by using the following member variables of the Template class:

@sl_comment_starts_with = "//" # single-line comment characters
@ml_comment_starts_with = "/*" # multi-line comment start start characters
@ml_comment_ends_with   = "*/" # multi-line comment end characters

To modify the properties, you need to assign them new values in the constructor of your template class. For example:

class ArmDemo < Template

  def initialize
    super
    @is_executable = true

    @sl_comment_starts_with = ";" 
    @ml_comment_starts_with = "/=" 
    @ml_comment_ends_with   = "=/" 
  end

  ...

end
Actions #3

Updated by Andrei Tatarnikov over 9 years ago

  • Status changed from Resolved to Closed
  • Target version changed from 2.0 to 2.1
  • Published in build set to 141018
Actions

Also available in: Atom PDF