Skip to content
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

Neko/cpp tests? #50

Closed
FrancisBourre opened this issue Aug 25, 2016 · 8 comments
Closed

Neko/cpp tests? #50

FrancisBourre opened this issue Aug 25, 2016 · 8 comments

Comments

@FrancisBourre
Copy link
Collaborator

From @cambiata on May 30, 2016 15:27

Hi! Cool!

Is it possible to run tests on neko/cpp platforms?
Not implemented yet, as far as I can see in hex.unittest.notifier path...

Jonas

Copied from original issue: DoclerLabs/hexUnit#2

@FrancisBourre
Copy link
Collaborator Author

From @grosmar on May 30, 2016 16:47

Hey! Thanks :)

Normally it should work because the runner itself is single thread and platform independent, but you're right, there is no notifier written for neko/cpp target.

Do you feel to try to write a notifier based on the existing ones? I think a console line notifier could be written really fast and simple, and it would be great to see also for us how does it operate in another platform :)

@FrancisBourre
Copy link
Collaborator Author

From @cambiata on May 30, 2016 18:27

Well, there seems to be a problem with the MethodRunner and the limited neko Timer...

/src/hex/unittest/runner/MethodRunner.hx:153: characters 3-19 : haxe.Timer has no field stop
/src/hex/unittest/runner/MethodRunner.hx:155: characters 16-36 : haxe.Timer does not have a constructor
/src/hex/unittest/runner/MethodRunner.hx:156: characters 2-17 : haxe.Timer has no field run
/src/hex/unittest/runner/MethodRunner.hx:204: characters 2-42 : haxe.Timer has no field stop
/src/hex/unittest/runner/MethodRunner.hx:168: characters 3-43 : haxe.Timer has no field stop
/src/hex/unittest/runner/TestRunner.hx:190: characters 3-14 : Class<haxe.Timer> has no field delay  

@FrancisBourre
Copy link
Collaborator Author

From @grosmar on May 30, 2016 18:48

Ah your right :)
There is weak Timer functionality in neko.

I will look into it

@FrancisBourre
Copy link
Collaborator Author

From @grosmar on May 30, 2016 19:35

Hmmm looks strange. Which version of haxe and neko do you use?

Normally according to haxe documentation it should not work:
http://api.haxe.org/haxe/Timer.html

But for me i could use everything (I use 3.3.0)

Btw, I had to make some modifications on hexUnit. Now i can run async tests and there is no problem with MethodRunner.

Could you check it?

@FrancisBourre
Copy link
Collaborator Author

From @grosmar on May 30, 2016 20:51

I've checked it. It's compatible with 3.3.0, but not with 3.2.x

I've added some conditional compiling to manage this case, so it should work now.

Let me know if it works for you.

@FrancisBourre
Copy link
Collaborator Author

Neko platform is available till today (PHP platform as well till last week). Next one will be CPP.

@FrancisBourre FrancisBourre added this to the 1.0.0 milestone Sep 7, 2016
@FrancisBourre
Copy link
Collaborator Author

Should be an epic with stories in it.

@aliokan aliokan modified the milestone: 1.0.0 Jan 26, 2017
@FrancisBourre
Copy link
Collaborator Author

Not planned for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants