Git Product home page Git Product logo

tar's Introduction

Testowanie aplikacji Ruby, 2016/17

There are only two types of theories [programms]:

  1. Theories that are known to be wrong, as they were tested and adequately rejected.
  2. Theories that have not yet been known to be wrong, not falsified yet, but are exposed to be wrong.
    K. Popper
    Why is the theory [program] never right?

Ruby

  1. Konfiguracja środowiska do pracy z projektami w Ruby:
  1. Wprowadzenie do języka Ruby:

  1. Szablon projektu Ruby + RSpec.
  2. Ogólnie o testowaniu:
    • Learn X in Y minutes, where X = Rspec, Capybara, Factory Girl.
  3. Wprowadzenie do RSpec.
  4. Testy jednostkowe.
  5. Testy integracyjne.
  6. Refaktoryzacja kodu.
  7. Pokrycie kodu testami:
  8. Doubles, mocks i stubs.
  9. Praca z Legacy Code (zastanym kodem, kodem niepokrytym testami).

RSpec

  1. David Chelimsky, Dave Astels, Zach Dennis, Aslak Hellesøy, Bryan Helmkamp, Dan North. The RSpec Book: Behaviour-Driven Development with RSpec, Cucumber, and Friends.
  2. Robert C. Martin. Czysty kod.
  3. Dokumentacja RSpec:
  1. Better Specs – how to describe your methods, use context

Dokumentacja i inne użyteczne rzeczy

Ruby:

  1. Ruby Koans – Learn Ruby with the Neo Ruby Koans.
  2. Jay Fields, Shane Harvie, Martin Fowler with Kent Beck. Refactoring – Ruby edition.
  3. Ruby Style Guide – a community-driven Ruby coding style guide
  4. Get the Lowdown on Ruby Modules

Git:

Atom (command palette -> cmd+shift+p):

Polskie literki (ą, Ś) oraz nowe i nadpisanie keybinding w systemie Darwin. Dopisujemy w pliku ~/.atom/keymap.cson:

'.platform-darwin atom-text-editor':
  'alt-a': 'native!'
  'alt-shift-s': 'unset!'
  'ctrl-shift-i': 'auto-indent:apply'
  'cmd-shift-m': 'markdown-preview:toggle'

Większe literki w oknie script i linter oraz w UI. Dopisujemy w pliku ~/.atom/styles.less:

@ui-font-size: 16px;

.script-view {
 .panel-body pre {
   background: @tool-panel-background-color;
   color: @text-color;
   font-size: 1.6rem;
 }
 .output {
   font-size: 1.6rem;
 }
 .stderr {
   color: @text-color-error;
   font-size: 1.6rem;
 }
}

linter-message {
  font-size: @ui-font-size;
}

.rspec-console.rspec {
   background-color: white;
   color: black;
   overflow: scroll;
 }
.rspec-console.rspec {
  pre,
  pre div atom-text-editor,
  code,
  tt {
    font-size: @ui-font-size;
    font-family: PT Mono, monospace;
  }
  .rspec-output {
    background: #fff;
    color: #000;
  }
}

Continuous Integration and Deployment:

  1. Codeship.
  2. Travis – niestety usługa płatna dla repozytoriów prywatnych.

Fajne:

  1. Codility – we test coders

tar's People

Contributors

aneta-7 avatar darhvid avatar dgrzesiak avatar grabarzstg avatar kochocki avatar kreteda avatar laikkk avatar ljadanowski avatar ljercha avatar lkliczkowski avatar luk-apps avatar maranx avatar mbeiger avatar mjaszczak avatar mjozwiak avatar mrzepniewski avatar ohstap avatar padamaszek avatar pietter avatar pmroczek avatar potwor avatar pzeranski avatar rpluskota avatar siepet avatar suscilowicz avatar tomaszte avatar tsmogor avatar wbanaszak avatar wojtasss avatar zuzanna-w avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.