Git Product home page Git Product logo

Comments (5)

RealyUniqueName avatar RealyUniqueName commented on August 23, 2024

But it has a doc with explanation :)

But ok. Can anyone suggest a better name? addCasesInPackages?

from utest.

Gama11 avatar Gama11 commented on August 23, 2024

Couldn't it just error in case no tests were added (in which case the user probably tried to pass something in that isn't a package)?

FWIW, I've also tried to use this method before and it didn't behave as I would've expected, although in a different way. I'm honestly not quite sure what's going on here:

from utest.

Simn avatar Simn commented on August 23, 2024

IMO this entire functionality is out-of-scope in the Runner class...

from utest.

saem avatar saem commented on August 23, 2024

Adding another point of view, this doesn't work at all like I expected when I just tried to use it.

My expectation was that I gave it a path/package and it should go spelunking and find all classes that extend Test or implement ITest. Instead it threw an error as it tried to instantiate non-test classes.

I imagine due to various macro phases this is all very tricky, but ideally it should take a path and a filter predicate function and then properly discover and add actual tests. A non-recursive variety should simply have a different name.

I tried to figure if I could do the auto-discovery in my project, but I'm rather new and not yet comfortable enough with the macro system to even know if this is feasible.

Nonetheless, the library is super straightforward otherwise and it's pretty nice to use, thanks!

from utest.

cedx avatar cedx commented on August 23, 2024

Same issue as @Gama11 here: I always get the Unexpected import error when I try to use Runner.addCases().

Haxe: 4.1.1 (x64) on Windows 10.
UTest: 1.10.3

from utest.

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.