Comments (5)
But it has a doc with explanation :)
But ok. Can anyone suggest a better name? addCasesInPackages
?
from utest.
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.
IMO this entire functionality is out-of-scope in the Runner class...
from utest.
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.
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)
- Null safety
- Class name pattern
- Multiple async calls HOT 4
- Simple way to print out running tests
- Assert.sameAs failure
- Release a new version for Haxe 4.1.0 HOT 2
- UTest.run(cases, callback): callback not called
- Attempt to call a nil value error on Lua HOT 3
- Assert is not compatible with null safety
- Haxe < 4.1 compatibility HOT 2
- Make Sys.exit() after completion optional HOT 3
- Add method Assert.raisesMessage HOT 1
- 4.2 issue? Unmatched patterns: OpSpread HOT 2
- Deprecated Assert.is method in the documentation HOT 2
- Haxe 4.2.3: Doesnt work HOT 4
- php target is broken HOT 1
- Asynchronous tests are broken HOT 5
- async setupClass hangs (never displays results)
- Feature request: parametrizing tests HOT 2
- Partial object matching
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from utest.