-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tink_unittest support #1
Comments
Basically two things:
Of course both should only happen when For munit, utest and haxe.unit we (well it was @Gama11's brilliant idea) where able to make it work without modifications and by injecting everything "from the outside". So users don't need to modfiy any source code. It even works on projects that don't use |
Things are a bit in flux right now. The extension now has a |
I guess for tink_unittest it's a bit complicated, because it already uses a few macros. I think one approach would be to overwrite |
For reporting I guess it would be best to do so in a As for filtering I think somehow it needs to feed a full list to the adapter? |
yes, a reporter can feed test results into test adapter. I am not sure if it is possible to add one on the fly so that a compilation with Filtering requires a call to I think after a busy day yesterday things have stabilised a bit and quite a few bugs where fixed. The API should not change much anymore. You might want to look into [edit]and it should run on Haxe 3 and 4[/edit] |
After working on buddy support, I looked at tink_unittest again and I think it would work in a similar fashion. I would basically add a build macro to It's only a short summary and I might miss a few obstacles, but that's how I think it might work. |
@kevinresol just for clarification: are you still working / planning to work on a tink_unittest / tink_testrunner integration and do you need support? |
Sorry but I just don't have time to work on it in short term. |
Don't worry, I might have time to work on it later today. |
I have initial tink_testrunner support running. I had to disable our error testcase because it throws an exception which tink_testrunner doesn't seem to catch and I can see no The same goes for ignored tests, you can For filtering test cases I return
from Runner.runCase. It will still report on suites where all test cases have been filtered out, but I guess there is no better way. |
Right, tink_testrunner doesn't try to catch exceptions because it supports async tests (and it can't catch exceptions from async calls anyway). It is users' responsibility to catch them and produce an I think this will work: public function testError() {
return new tink.core.Error("failure");
} |
As for |
thanks, that helped fixing error handling |
tink_unittest support is now available in 1.2.0. :) |
I would like to make this support tink_unittest. What are the requirements?
The text was updated successfully, but these errors were encountered: