Git Product home page Git Product logo

srunit's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

srunit's Issues

Which oxid version

Hm, i don't get it running properly.

My oxid version is 4.9.2 CE, is it right to use this version?

i've created a test module, which implement a class (assigns in metadata.php under "files"), extends from oxbase and implements a "foo" function.

if i create a mock from this class, in my test files, i just get a "...::foo() does not exists on this mock object".

maybe im totally stupid, but has anyone an idea?

Implement Util\VirtualFilesystem

Add/Implement Util\VirtualFilesystem (similar to Util\Filesystem), and remove the createFilesystem() and createFilesystem() from TestCase.
Both of them should implement the same Interface, or extend an AbstractFilesystem.

Code Coverage

When generating code coverage there is fatal errors about non existent parent classes.

Dirty workaround:

Add loadOXID() to bootstrap.php in tests folder.

SrUnit\Bootstrap::create(DIR)->loadOXID()->bootstrap();

Autoloading of OXID classes does not work properly?

Apparently the custom autoloader does not work properly. When a extension for an OXID class should be tested (e.g. oxArticleFoo), this class is not considered to be autoloaded.

metadata.php contains a valid entry in 'extend'.

Please check this.

Test Isolation breaks Verfication of Mock-Expectations

The general approach to let all tests run in isolation breaks the verification of the defined expectation that should be triggered by TestListener

No clue yet how to make things better. First idea is to drop the global setting above and use the PHPUnit annotation to trigger isolation. Because this is only needed when it comes to alias-mocks.

type error in readme

\SrUnit\Boostrap::create(DIR)->bootstrap(); is wrong

\SrUnit\Boostrap::create(DIR)->bootstrap(); is right

BOOTSTRAP instead BOOSTRAP, 5 living hours head meets wall :)

Exclude sR Unit from coverage

When I use sR Unit and run phpunit with --coverage-text for instance, I don't want to see Mockery showing up etc.

Need mocking of OXID classes (like used for parent-classes)

We can use Factory::createParentClass(), but this is adding an implicit "_parent" to the classname, because the intention was to mock the OXID-parent classes.
But it would be good to have this feature also availlable for direct extensions of OXID core classes.

Please figure out how to enable such a feature.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.