Leafless export


#1

Hi,

What is the --leafless-export option ? I don’t understand how it works.

Thanks a lots.

Best regards,
Eric Leconte.


#2

Hello,

This command give you the Action words doesn’t involve other Action words, It excepts all Action words of high level.

For exemple, we have:

  1. Action word #1
    a. Action word #2
    b. Action word #3
  2. Action word #4

With this command option --leafless-export, we’ll generate only Action word #2, Action word #3 and Action word #4

Hope it help you :slightly_smiling_face:

Regards,
Houda


#3

Hi !

I don’t understand.
I don’t see any difference with standard generation (behat)

#1 - I set a scenario :

scenario 'test leafless export' do
  call 'I call a first level action word'
end

with :

actionword ‘I call a first level action word’ do
call ‘I call a second level action word’
end

actionword ‘I call a second level action word’ do
call ‘I call a third level action word’
end

actionword ‘I call a third level action word’ do
step {action: “do something.”}
end

#2 - the FeatureContext contain :

/**
  * @Given /^I call a first level action word$/
  */
  public function iCallAFirstLevelActionWord(){
    $this->actionwords->iCallAFirstLevelActionWord();
  }
  /**
  * @Given /^I call a second level action word$/
  */
  public function iCallASecondLevelActionWord(){
    $this->actionwords->iCallASecondLevelActionWord();
  }
  /**
  * @Given /^I call a third level action word$/
  */
  public function iCallAThirdLevelActionWord(){
    $this->actionwords->iCallAThirdLevelActionWord();
  }

#3 - The Actionword file contain :

  public function iCallAFirstLevelActionWord() {
    $this->iCallASecondLevelActionWord();
    $this->iCallAThirdLevelActionWord();
  }

  public function iCallASecondLevelActionWord() {
    $this->iCallAThirdLevelActionWord();
  }

  public function iCallAThirdLevelActionWord() {

  }

#4

Hi Eric,

We think that you have make this handling when our team was working on it, we invite you to retry this manipulation.

Sorry for the inconvenience.

Regards,
Houda