Open tomRedox opened 8 years ago
Same problem on Windows 10 Pro, 64.bit
Yeah, some things are currently not made portable with Windows. E.g.:
Ah OK, so it sounds like things won't work with Windows for now without some work? I don't know enough to fix the issues you mention unfortunately, is it something you plan to look at?
In the short term it might be worth adding a line to the install section of the readme noting the instructions aren't for Windows.
Ah OK, so it sounds like things won't work with Windows for now without some work?
Yes. I currently don't have my Windows PC at hand, so I cannot test the fixes myself. But I will fix the portability issues that I know.
@samhatoum gave me some pointers and I managed to get the Wallaby test runner working in WebStorm on Windows using these steps:
Do the npm install Run meteor (needs to be running for Wallaby to work in this approach)
Create two wallaby profiles:
1) A client one using wallaby_client.js
2) A server one using 'wallaby_server.js'
You can then run both of those simultaneously in WebStorm (just select them and run them)
You will then get errors for both the server and client
To fix the client: change line "NODE_ENV": process.env.NODE_ENV || "development"
to "NODE_ENV": "development"
in .\src\imports\testing\clientmeteor_runtime_config.js
To fix the server:
Change runner: path.resolve(process.env.HOME, '.nvm/v0.10.40/bin/node'
to runner: path.resolve("C:\\Program Files (x86)\\nodejs\\node.exe")
(or the path to any other 4.x version of Node you have installed on your machine) in .\automated-testing-best-practices\wallaby_server.js:276:20`.
I know have 23 tests passing in both the server and the client. Hope that's useful to others too.
Commits 37b1d2f9fffa472e6e8aa2563c2e01c0766ac2b2 and 84c1ce900e29c002479055f65dc4828c0df83d21 seem to fix the latest issues you mentioned here @tomRedox Perhaps mark this as closed @Sanjo?
But add a brief Windows-paragraph on the whole setup process described above without the file fixes.
<- Also a windows user anxious to make use of Wallaby!
I followed the installation instructions but haven't been able to get the project running. I'm guessing this may be because I'm on Windows (8.1 Pro specifically) as there is a symlink warning in one of the messages?
I'm getting warnings and errors at each stage of the process as shown in the copies of the console messages below.
Apologies, I'm not really experienced enough with Git or NPM to work out the causes for all of this.
1) Cloning the repo with Git Bash:
2) npm install:
3) npm start