mausch / Fuchu

Functional test library for F# / C# / VB.NET
Apache License 2.0
120 stars 22 forks source link

+ Test with Fable #63

Closed wallymathieu closed 4 years ago

wallymathieu commented 4 years ago
wallymathieu commented 4 years ago

For some reason appveyor and github actions doesn't trigger

wallymathieu commented 4 years ago

I've gotten so far that it compiles. The odd thing right now is that while starting it with node, it seems to exit before running the tests. Any ideas @alfonsogarciacaro ?

alfonsogarciacaro commented 4 years ago

@wallymathieu It may be that the test runner doesn't find any test. Can you try running the tests with npx mocha ./bin -r esm. Make sure the files in that folder contain tests in Mocha format: https://mochajs.org/#getting-started

wallymathieu commented 4 years ago

The thing is that Fuchu is a test runner written in F#. Since it's less than 1000 lines of code I'm thinking that it would be neat to be able to use Fuchu instead of Mocha/Expecto and instead use a single runner for both .net and Fable (given some adjustment of Fuchu).

alfonsogarciacaro commented 4 years ago

Ah, ok! Yes, an F# test runner for Fable would be nice. I will try to clone and reproduce.

wallymathieu commented 4 years ago

Right now I've found that I'm probably doing something wrong related to async things. The current code hangs in a setTimeout while loop.

wallymathieu commented 4 years ago

I think I did something silly indeed, the Async.RunSynchronously polyfill didn't work as intended.