stryker-mutator / stryker-mutator.github.io

Repository to maintain our stryker-mutator.io website
https://stryker-mutator.github.io
Apache License 2.0
27 stars 31 forks source link

Use Glitch for interactive example on landing page #122

Open ollelauribostrom opened 5 years ago

ollelauribostrom commented 5 years ago

The example (about building an online casino) could be made interactive by using something like Glitch to embed a runnable example. This would basically allow the user to view and edit code/tests files and to run Stryker to see what happens - pretty cool in my opinion 😎

Example here: https://glitch.com/edit/#!/night-lens (open the embedded console by pressing 'Tools' -> 'Logs', then select the 'Console' tab)

nicojs commented 5 years ago

Awesome idea! How exactly would that work? You want people to run stryker from night-lens? Because right now, Stryker is pretty reliant on fs and other core node modules to perform its work. That won't work in the browser without some major refactoring.

ollelauribostrom commented 5 years ago

It should be runnable right now (Glitch provides some sort of vm sandbox). Follow the link -> press "Remix to edit" and then open the embedded console by pressing 'Tools' -> 'Logs', then select the 'Console' tab. Then npx stryker run 🙂