Skip to content

Instantly share code, notes, and snippets.

@matti
Created December 18, 2018 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matti/c32a1012936428461ba24fabe36376bf to your computer and use it in GitHub Desktop.
Save matti/c32a1012936428461ba24fabe36376bf to your computer and use it in GitHub Desktop.

firefoxilla: https://www.google.com/chrome/

  • lataa & asenna chrome.

terminaalissa:

vaihdetaan pääkäyttäjäksi:

sudo su

sitten asennetaan tarvittat paketit rubyyn:

apt-get install -y ruby-full build-essential zlib1g-dev

annetaan normaalin kättäjän asentaa rubygemejä:

chmod -R a+rw /var/lib/gems
chmod a+rw /usr/local/bin

ladataan chromedriver:

wget https://chromedriver.storage.googleapis.com/2.45/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
cp chromedriver /usr/local/bin

asennetaan vscode editori:

snap install --classic vscode

poistutaan pääkäyttäjätilasta:

exit

HUOM: ajoithan komennon exit

asennetaan superbara

gem install  --no-document superbara

luodaan testi koe/main.rb

superbara init koe

avataan testi editoriin:

code koe/main.rb

aloitetaan testin tekeminen:

superbara start koe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment