wallaby icon indicating copy to clipboard operation
wallaby copied to clipboard

Windows

Open rpwatkins opened this issue 10 years ago • 14 comments

Is there any chance this can be modified to run on Windows. The shall script requires a bash environment, as I understand it. Could that not be replaced with a similar batch file?

rpwatkins avatar Sep 30 '16 20:09 rpwatkins

I'd love to have better support for windows. Unfortunately I don't have a windows machine to test against atm. If you want to submit a patch I'd be happy to review it.

keathley avatar Oct 01 '16 02:10 keathley

To add a bit more information here. What you would need to do is translate: https://github.com/keathley/wallaby/blob/master/priv/run_phantom.sh into something that windows understands.

keathley avatar Oct 09 '16 22:10 keathley

How about the following Powershell script (run_phantom.ps1)?

$a = $MyInvocation.UnboundArguments
$p = $a[1..($a.length -1)]
$process = Start-Process $a[0] -ArgumentList "$p" -PassThru
$waitforcr = Read-Host
Stop-Process $process.Id

texjim avatar Oct 25 '16 18:10 texjim

Using that script, we successfully tested running Wallaby under Windows. All the tests passed, but zombie processes were left behind. The powershell script is intended to prevent that, so a little bit more work is needed for this to be ready.

chowevtfy avatar Oct 25 '16 20:10 chowevtfy

You might have to pass -Force to the Stop-Process call based on this: https://technet.microsoft.com/en-us/library/hh849781.aspx.

keathley avatar Oct 26 '16 00:10 keathley

Ah, yes, we've tried that. You can see how we're calling into powershell here. I think that using the -Command option may be causing it to spawn a second instance of powershell to run the script. l'm not sure exactly what problems that could cause yet.

chowevtfy avatar Oct 26 '16 00:10 chowevtfy

I'm not super familiar with powershell. But, is it possible that the command is running the script, then exiting, orphaning the script? Have you tried removing the -Command flag? Also I'm guessing it doesn't matter that Noninteractive doesn't have a capitalized "I".

keathley avatar Oct 26 '16 01:10 keathley

Any progress in getting Windows support working properly? Have a few developers shifting between C# and Elixir and would love to have Wallaby run on everyone's machine.

zolrath avatar Jan 03 '17 19:01 zolrath

@zolrath Take a look at our fork ( https://github.com/vertify/wallaby ). All of the 145 unit tests pass on my Windows 10 box, but we are running a strange issue where you have to hit Ctrl-C or Enter a few times for the shell to be ready to accept commands after the tests run. When I look at the process table, the phantonjs processes are still there until I hit Ctrl-C...then they all close and the shell is ready to take commands again.

texjim avatar Jan 03 '17 22:01 texjim

I tried to work on this a bit with a friend on their windows 10 box. We weren't able to get your fork working @texjim. It seemed like the port that we use to manage an individual phantom instance wasn't getting any data. Have you seen anything like that?

keathley avatar Jan 04 '17 20:01 keathley

What version of Powershell are you using @keathley ?

PS C:\wallaby> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      0      10586  672

If I'm not mistaken when I had an older version loaded it did give me issues. Here are the version numbers for what I have loaded:

PS C:\wallaby> choco list --local-only
chocolatey 0.9.9.11
elixir 1.3.4
erlang 19.0
PhantomJS 2.1.1
PowerShell 5.0.10586.20151218

texjim avatar Jan 05 '17 23:01 texjim

I'll double check.

keathley avatar Jan 06 '17 00:01 keathley

I just wanted to follow up on this to see if anyone had had any luck getting wallaby to work on windows. I also didn't know if it might be easier now that we are supporting chrome and chromedriver.

keathley avatar Jul 20 '17 14:07 keathley

I'm going to close this for now since I don't have any other actionable steps to take. If anyone has further information please feel free to re-open.

keathley avatar Jul 11 '18 14:07 keathley