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

Ability to run tests as dotnet test #11

Open
jkone27 opened this issue Jan 4, 2023 · 2 comments
Open

Ability to run tests as dotnet test #11

jkone27 opened this issue Jan 4, 2023 · 2 comments

Comments

@jkone27
Copy link

jkone27 commented Jan 4, 2023

i was wondering if since F# is transpiled to javascript, wouldnt make sense , if one had the ability, to run tests in F# compiled code instead of transpiling them to js, to make the test run faster?

not sure how faster it could be, but potentially it could be faster maybe for big FE projects?
e.g. recently had to use this to try speed up a test suite - https://swc.rs/docs/usage/jest.

so running them in dotnet test, instead of npm test, i wonder if this could help be fast and make another use case for F# for tests instead of using js for it, giving an extra point to F# over typescript for example

@RussianCow
Copy link

This has to get run as JS because it's interfacing with a JavaScript test runner. It would be great if you could run Fable tests directly with .NET, but then you'd have to have an F# implementation of every JavaScript library/API you use. So while I can't speak for the author's plans, I don't think this will ever happen.

@Zaid-Ajaj
Copy link
Contributor

Zaid-Ajaj commented Feb 4, 2023

@jkone27 Fable.Mocha allows you to run the same tests in nodejs with mocha, in dotnet with expecto or inside a headless (chromium) browser

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

No branches or pull requests

3 participants