1
timgno
TDMCreate 1.91 testing with Codeception
  • 2015/6/8 7:49

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


@goffy hi -> (Thanks for tests)

Some things I had already tested myself and the other fixed I'm doing now to those who have shown anyway thanks for the help is always important hand.
I'm not sending other release because I want to complete the first part of the template style bootstrap and do further testing.

There is one thing I want to know!

"The code and the classes of this new module are good enough, or have some limit?"

Why do I sometimes encounter difficulties to create another code, but unfortunately the time to rewrite is limited.

Meanwhile, I found a bug that seems to belong also to the core.
I mentioned that by clicking on the link Go to Module in admin and the main menu there is a carriage return, was due to the index.html file of the home module.

Deleting it all only works for some modules for others while deleting the links do not work equally at home module

@To Others Users

This is an importat module to create others modules in xoops.

2
timgno
Re: TDMCreate 1.91 alpha 3 for Testing
  • 2015/6/13 14:56

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


New Release alpha 3 2

My tests don't contain errors

3
Mamba
Re: TDMCreate 1.91 alpha 3 for Testing
  • 2015/6/14 4:10

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
My tests don't contain errors

Are you testing it manually, or do you have already Codeception tests for it? If the second, can you add them to /tests ?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

4
timgno
Re: TDMCreate 1.91 alpha 3 for Testing
  • 2015/6/15 18:44

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Quote:
Are you testing it manually, or do you have already Codeception tests for it? If the second, can you add them to /tests ?


No to the second are still being studied, you should give me a hand to get started faster.

Could you send me some sample files via email on how to enter the codes for this module?

Just so I can better understand how Codeception.

The basic tutorials are too little and the default code.

If I can figure out how to write for our modules, I think I can learn more quickly this Framework

Thanks!

5
Mamba
Re: TDMCreate 1.91 alpha 3 for Testing
  • 2015/6/16 14:57

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
Just so I can better understand how Codeception.
The basic tutorials are too little and the default code.

What issues are you having? What have you done so far and where are you getting stuck?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

6
timgno
Re: TDMCreate 1.91 alpha 3 for Testing
  • 2015/6/17 15:17

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


@goffy I've accepted your pull request

@Mamba
Quote:
What issues are you having? What have you done so far and where are you getting stuck?


The only test that can make are those without contents strings inside.

If I try to enter a url for modules/tdmcreate/admin I always failed test, and in some cases I find that I have no links inserted of modules/profile/user.php in result test

The only test that can do are the ones creating file base acceptance, for the functions still no

I do not know where I'm wrong

Right now I'm trying to figure out how to build the class methods for testing, but they are still inexperienced at this.

7
Mamba
Re: TDMCreate 1.91 alpha 3 for Testing
  • 2015/6/17 19:55

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
I do not know where I'm wrong

Right now I'm trying to figure out how to build the class methods for testing, but they are still inexperienced at this.

Just add you tests to the /tests folder, so other people can take a look and maybe will be able to help....

Also try to explain what you were trying to do (step by step), the logic behind it, what you expected to get, and what you got instead...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

8
timgno
Re: TDMCreate 1.91 alpha 3 for Testing
  • 2015/6/18 15:25

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


I'm studying the docs of codeception 2.0 from GitHub with these methods

<?php
class TestTest extends CodeceptionTestCaseTest
{
    public function 
testBaseOne()
    {
        return 
'hey';
    }

    
/**
     * @depends testBaseOne
     */
    
public function testDependentOne($hey)
    {
        
$this->assertEquals('hey'$hey);
    }

    public function 
testReportedInterface()
    {
        
$this->assertInstanceOf('\Codeception\TestCase\Interfaces\Reported'$this);
        
$this->assertEquals(array(
            
'file' => __FILE__,
            
'name' => 'testReportedInterface',
            
'class' => 'TestTest',
            
'feature' => 'test reported interface',
        ), 
$this->getReportFields());
    }

}


I do not know how to link the code to the modules, I will get there soon?

Login

Who's Online

217 user(s) are online (136 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits