Matthew Gamble

Results 65 comments of Matthew Gamble

See here for some references: https://github.com/cashmoneyjs/cashmoney/tree/master/tests https://github.com/cashmoneyjs/number/tree/master/tests

I agree that the name `TestCases` isn't great. How about something like `TestCaseGenerator`? It could still accept any iterator (or a function that returns an iterator) like `TestCases` does now,...

What would that look like from an end-user perspective?

But what about handling for the current situation, where if `TestCases` is passed a function (or static class method), it will call it and store the result of calling that...

The original point of me opening this issue was to not have to do that at all. Right now, even if my function is a generator the `TestCases` decorator unwinds...

Thank you for taking the time to lay everything out again in full, I appreciate it. It makes a lot more sense now and definitely looks like the right way...

It would also be nice if there was integration with the `tsconfig-paths` package. Right now I'm maintaining my own CLI script to start alsatian, and this PR alone wouldn't be...

An easy solution to this problem is to install the `esm` package and require it on the command-line before doing anything else.

There's already a `py.typed` file in the repo, but it doesn't seem to be included in the packages uploaded to PyPI.

We'd really appreciate it if a new version could be published :pray: