-
Notifications
You must be signed in to change notification settings - Fork 56
Building on Windows
Snow Crash officially supports Microsoft Visual C++ 2013 or higher.
-
Clone
apiaryio/snowcrash
recursively using GitHub client orgit clone --recursive
in the Git Shell -
Open
Command Prompt
and change directory (cd
) to Snow Crash e.g.:> z: > cd Apiary\snowcrash
-
Run
vcbuild.bat
:> vcbuild.bat
-
Run Snow Crash tests:
> vbuild.bat test
-
Run Snow Crash integration tests (optional)
> vbuild.bat inttest
Running vcbuild.bat
(step 6) also generates the Snow Crash MSVS solution file - snowcrash.sln
. You can find it inside the snowcrash/build
directory and open it with your Visual Studio.
You can control the version of MSVS solution file generated by specifying a MSVC20XX
flag while invoking the vcbuild.bat
. Run vcbuild.bat /?
to see the list of supported MSVC versions.
Snow Crash integrations tests are done using Cucumber and Aruba. You can find the tests features in the features directory.
In order to run the tests you need to have Ruby and Bundle
gem installed on your systems:
-
Install Ruby 1.9.3-p545 (check
Add Ruby executable to your PATH
on the installation) -
Use
Command Prompt
to install theBundle
gem> gem install bundle
-
Run the integration tests
> vbuild.bat inttest
Note: You can use ansicon to enhance Cucumber output in the Command Prompt.
Note: If you are running the tests manually using bundle exec cucumber
make sure to set ENV['PATH']
to include the directory with snowcrash.exe
(done automatically using vcbuild.bat inttest
).