Changeset 591

Show
Ignore:
Timestamp:
09/28/07 11:27:20 (1 year ago)
Author:
laurentj
Message:

fixed bug #284: bad module context during the run of all unit tests in junittest module. p=Rahal

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0beta3.x/lib/jelix-modules/CREDITS

    r505 r591  
    1 Crédits 
     1Credits 
    22======= 
    33 
    4 Concepteur et développeur : Laurent Jouanneau 
     4Core team developers 
     5-------------------- 
    56 
    6 Contributeurs 
    7 * Eric Heunthep (neolao) : listener des évènements auth dans acl 
    8 * Loic Mathaud (bbalizlife) : bug 
    9 * Chris : coquille dans jauth.listener.php ( ticket #221) 
     7Laurent Jouanneau (laurentj): 
     8 - Conceptor and main developer of Jelix modules 
     9 
     10Contributors 
     11------------ 
     12By alphabetic order on the name 
     13 
     14* Rahal Aboulfeth 
     15   bug fix in the controller of junittest (#284) 
     16 
     17* Chris 
     18    bug fix in jauth.listener.php ( ticket #221) 
     19 
     20* Eric Heunthep (neolao) 
     21    listener on auth events in acl module 
     22 
     23* Loic Mathaud (bbalizlife) 
     24    bug fix 
     25 
  • branches/1.0beta3.x/lib/jelix-modules/CREDITS

    r505 r591  
    1 Crédits 
     1Credits 
    22======= 
    33 
    4 Concepteur et développeur : Laurent Jouanneau 
     4Core team developers 
     5-------------------- 
    56 
    6 Contributeurs 
    7 * Eric Heunthep (neolao) : listener des évènements auth dans acl 
    8 * Loic Mathaud (bbalizlife) : bug 
    9 * Chris : coquille dans jauth.listener.php ( ticket #221) 
     7Laurent Jouanneau (laurentj): 
     8 - Conceptor and main developer of Jelix modules 
     9 
     10Contributors 
     11------------ 
     12By alphabetic order on the name 
     13 
     14* Rahal Aboulfeth 
     15   bug fix in the controller of junittest (#284) 
     16 
     17* Chris 
     18    bug fix in jauth.listener.php ( ticket #221) 
     19 
     20* Eric Heunthep (neolao) 
     21    listener on auth events in acl module 
     22 
     23* Loic Mathaud (bbalizlife) 
     24    bug fix 
     25 
  • branches/1.0beta3.x/lib/jelix-modules/junittests/controllers/default.classic.php

    r467 r591  
    44* @subpackage  junittests 
    55* @author      Jouanneau Laurent 
    6 * @contributor 
    7 * @copyright   2007 Jouanneau laurent 
     6* @contributor Rahal Aboulfeth 
     7* @copyright   2007 Jouanneau laurent, 2007 Rahal Aboulfeth 
    88* @link        http://www.jelix.org 
    99* @licence     GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    4747        } 
    4848 
    49  
    5049        $rep = $this->_prepareResponse(); 
    51  
    5250 
    5351        $reporter = jClasses::create("jhtmlrespreporter"); 
     
    5654        $reporter->setResponse($rep); 
    5755 
    58         $group = new GroupTest('Tests on all modules'); 
    59  
    6056        foreach($this->testsList as $module=>$tests){ 
    61  
     57            jContext::push($module); 
     58            $group = new GroupTest('Tests on module '.$module); 
    6259            foreach($this->testsList[$module] as $test){ 
    6360                $group->addTestFile($GLOBALS['gJConfig']->_modulesPathList[$module].'tests/'.$test[0]); 
    6461            } 
     62            $group->run($reporter); 
     63            jContext::pop(); 
    6564        } 
    66         jContext::push($module); 
    67         $group->run($reporter); 
    68         jContext::pop(); 
    69  
    70  
    7165        return $this->_finishResponse($rep); 
    7266    } 
  • branches/1.0beta3.x/lib/jelix-modules/junittests/controllers/default.classic.php

    r467 r591  
    44* @subpackage  junittests 
    55* @author      Jouanneau Laurent 
    6 * @contributor 
    7 * @copyright   2007 Jouanneau laurent 
     6* @contributor Rahal Aboulfeth 
     7* @copyright   2007 Jouanneau laurent, 2007 Rahal Aboulfeth 
    88* @link        http://www.jelix.org 
    99* @licence     GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    4747        } 
    4848 
    49  
    5049        $rep = $this->_prepareResponse(); 
    51  
    5250 
    5351        $reporter = jClasses::create("jhtmlrespreporter"); 
     
    5654        $reporter->setResponse($rep); 
    5755 
    58         $group = new GroupTest('Tests on all modules'); 
    59  
    6056        foreach($this->testsList as $module=>$tests){ 
    61  
     57            jContext::push($module); 
     58            $group = new GroupTest('Tests on module '.$module); 
    6259            foreach($this->testsList[$module] as $test){ 
    6360                $group->addTestFile($GLOBALS['gJConfig']->_modulesPathList[$module].'tests/'.$test[0]); 
    6461            } 
     62            $group->run($reporter); 
     63            jContext::pop(); 
    6564        } 
    66         jContext::push($module); 
    67         $group->run($reporter); 
    68         jContext::pop(); 
    69  
    70  
    7165        return $this->_finishResponse($rep); 
    7266    } 
  • branches/1.0beta3.x/lib/jelix-scripts/CREDITS

    r590 r591  
    1313 
    1414Bastien Jaillot 
    15   - bug fix on createdaocrud 
     15  - bug fix on createdaocrud (#283) 
    1616 
    1717Thiriot Christophe  
  • branches/1.0beta3.x/lib/jelix-scripts/CREDITS

    r590 r591  
    1313 
    1414Bastien Jaillot 
    15   - bug fix on createdaocrud 
     15  - bug fix on createdaocrud (#283) 
    1616 
    1717Thiriot Christophe  
  • trunk/lib/jelix-modules/CREDITS

    r505 r591  
    1 Crédits 
     1Credits 
    22======= 
    33 
    4 Concepteur et développeur : Laurent Jouanneau 
     4Core team developers 
     5-------------------- 
    56 
    6 Contributeurs 
    7 * Eric Heunthep (neolao) : listener des évènements auth dans acl 
    8 * Loic Mathaud (bbalizlife) : bug 
    9 * Chris : coquille dans jauth.listener.php ( ticket #221) 
     7Laurent Jouanneau (laurentj): 
     8 - Conceptor and main developer of Jelix modules 
     9 
     10Contributors 
     11------------ 
     12By alphabetic order on the name 
     13 
     14* Rahal Aboulfeth 
     15   bug fix in the controller of junittest (#284) 
     16 
     17* Chris 
     18    bug fix in jauth.listener.php ( ticket #221) 
     19 
     20* Eric Heunthep (neolao) 
     21    listener on auth events in acl module 
     22 
     23* Loic Mathaud (bbalizlife) 
     24    bug fix 
     25 
  • trunk/lib/jelix-modules/CREDITS

    r505 r591  
    1 Crédits 
     1Credits 
    22======= 
    33 
    4 Concepteur et développeur : Laurent Jouanneau 
     4Core team developers 
     5-------------------- 
    56 
    6 Contributeurs 
    7 * Eric Heunthep (neolao) : listener des évènements auth dans acl 
    8 * Loic Mathaud (bbalizlife) : bug 
    9 * Chris : coquille dans jauth.listener.php ( ticket #221) 
     7Laurent Jouanneau (laurentj): 
     8 - Conceptor and main developer of Jelix modules 
     9 
     10Contributors 
     11------------ 
     12By alphabetic order on the name 
     13 
     14* Rahal Aboulfeth 
     15   bug fix in the controller of junittest (#284) 
     16 
     17* Chris 
     18    bug fix in jauth.listener.php ( ticket #221) 
     19 
     20* Eric Heunthep (neolao) 
     21    listener on auth events in acl module 
     22 
     23* Loic Mathaud (bbalizlife) 
     24    bug fix 
     25 
  • trunk/lib/jelix-modules/junittests/controllers/default.classic.php

    r467 r591  
    44* @subpackage  junittests 
    55* @author      Jouanneau Laurent 
    6 * @contributor 
    7 * @copyright   2007 Jouanneau laurent 
     6* @contributor Rahal Aboulfeth 
     7* @copyright   2007 Jouanneau laurent, 2007 Rahal Aboulfeth 
    88* @link        http://www.jelix.org 
    99* @licence     GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    4747        } 
    4848 
    49  
    5049        $rep = $this->_prepareResponse(); 
    51  
    5250 
    5351        $reporter = jClasses::create("jhtmlrespreporter"); 
     
    5654        $reporter->setResponse($rep); 
    5755 
    58         $group = new GroupTest('Tests on all modules'); 
    59  
    6056        foreach($this->testsList as $module=>$tests){ 
    61  
     57            jContext::push($module); 
     58            $group = new GroupTest('Tests on module '.$module); 
    6259            foreach($this->testsList[$module] as $test){ 
    6360                $group->addTestFile($GLOBALS['gJConfig']->_modulesPathList[$module].'tests/'.$test[0]); 
    6461            } 
     62            $group->run($reporter); 
     63            jContext::pop(); 
    6564        } 
    66         jContext::push($module); 
    67         $group->run($reporter); 
    68         jContext::pop(); 
    69  
    70  
    7165        return $this->_finishResponse($rep); 
    7266    } 
  • trunk/lib/jelix-modules/junittests/controllers/default.classic.php

    r467 r591  
    44* @subpackage  junittests 
    55* @author      Jouanneau Laurent 
    6 * @contributor 
    7 * @copyright   2007 Jouanneau laurent 
     6* @contributor Rahal Aboulfeth 
     7* @copyright   2007 Jouanneau laurent, 2007 Rahal Aboulfeth 
    88* @link        http://www.jelix.org 
    99* @licence     GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    4747        } 
    4848 
    49  
    5049        $rep = $this->_prepareResponse(); 
    51  
    5250 
    5351        $reporter = jClasses::create("jhtmlrespreporter"); 
     
    5654        $reporter->setResponse($rep); 
    5755 
    58         $group = new GroupTest('Tests on all modules'); 
    59  
    6056        foreach($this->testsList as $module=>$tests){ 
    61  
     57            jContext::push($module); 
     58            $group = new GroupTest('Tests on module '.$module); 
    6259            foreach($this->testsList[$module] as $test){ 
    6360                $group->addTestFile($GLOBALS['gJConfig']->_modulesPathList[$module].'tests/'.$test[0]); 
    6461            } 
     62            $group->run($reporter); 
     63            jContext::pop(); 
    6564        } 
    66         jContext::push($module); 
    67         $group->run($reporter); 
    68         jContext::pop(); 
    69  
    70  
    7165        return $this->_finishResponse($rep); 
    7266    } 
  • trunk/lib/jelix-scripts/CREDITS

    r590 r591  
    1313 
    1414Bastien Jaillot 
    15   - bug fix on createdaocrud 
     15  - bug fix on createdaocrud (#283) 
    1616 
    1717Thiriot Christophe  
  • trunk/lib/jelix-scripts/CREDITS

    r590 r591  
    1313 
    1414Bastien Jaillot 
    15   - bug fix on createdaocrud 
     15  - bug fix on createdaocrud (#283) 
    1616 
    1717Thiriot Christophe  
Download in other formats: Unified Diff Zip Archive