Code Monkey home page Code Monkey logo

Comments (8)

dg avatar dg commented on May 20, 2024

Missing (new MyTest)->run(); is real problem. Tester was not designed for this usage. But now we have TestCase and it should be somehow solved. Probably by Runner (auto_append_file? or use special loader.php and pass test name as argument?).

Calling assertions seems like good idea.

from tester.

fprochazka avatar fprochazka commented on May 20, 2024

Having it runned by auto_append_file is a good idea, but you cannot auto_append_file, when you run the test directly, not through runner.

from tester.

JanTvrdik avatar JanTvrdik commented on May 20, 2024

That can be done using http://php.net/manual/en/configuration.file.per-user.php, by I've never tried it.

from tester.

dg avatar dg commented on May 20, 2024

Why so complicated? -d auto_append_file=file.php works well in current Tester.

from tester.

dg avatar dg commented on May 20, 2024

Missing (new MyTest)->run(); is solved by 96b192c.

from tester.

milo avatar milo commented on May 20, 2024

@dg Yop. If you think that checking ordinary tests (not TestCases) is not need it, close it please. Personaly I would check ordinary tests too.

from tester.

dg avatar dg commented on May 20, 2024

The only one case which is not checked is when you forget to call Tester\Environment::setup(), isn't it?

from tester.

milo avatar milo commented on May 20, 2024

Yes.

from tester.

Related Issues (20)

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.