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

Option for Fable.MochaPuppeteerRunner to autogenerate index.html #43

Open
steveofficer opened this issue Jan 22, 2022 · 1 comment
Open

Comments

@steveofficer
Copy link

I think it would be useful to have an option for the runner to get a path to the javascript file and auto create the index.html that is outlined in the README.md.

I think that if there was an option to run the tests something like this:

let main argv =
    "../public"
    |> System.IO.Path.GetFullPath
    |> Puppeteer.runSelfHostedTests "bundle.js"
    |> Async.RunSynchronously

Then this would allow people to get up and running that little bit quicker. Additionally there wouldn't be an extra index.html file hanging around in source control that is only there to host the tests, not because it adds any particular value to the project.

@Zaid-Ajaj
Copy link
Owner

Additionally there wouldn't be an extra index.html file hanging around in source control that is only there to host the tests,

I like the idea @steveofficer! Usually the index.html file does have value when you run "live tests": running the tests project using dotnet fable watch and watch the tests update live as you edit the code.

I agree though, an option would be nice.

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

2 participants