O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Erlang Common tests - Sergey Bondarchuk

140 visualizações

Publicada em

Elixir Club 7 Dnipro
I Coworking Hub

Publicada em: Tecnologia
  • Seja o primeiro a comentar

  • Seja a primeira pessoa a gostar disto

Erlang Common tests - Sergey Bondarchuk

  1. 1. Sergey Bondarchuk, Erlang Dev at Middleware Inc. Erlang Common Tests Framework
  2. 2. 1. Systematic refactoring 2. Separation of code into libraries or dependencies 3. To сover code by аutotests Some methods to simplify and speed-up software development process
  3. 3. 1. White-Box testing (structural) 2. Black-Box testing (functional) 3. Grey-Box testing (combination) Types of software testing
  4. 4. Structure of Common Tests
  5. 5. Typical actions for each suite callback 1. init_per_site - starting application(s), dependencies, connecting to db, connecting to ws, put connection references to config 2. init_per_group, init_per_tescase - creating some entities, to manipulate them into test cases callbacks, creating commit, beginning transaction, putting objects references to config 3. end_per_group, end_per_testcase - destroying entities, confirming commit, confirming/rejecting transactions
  6. 6. Structure of Common Tests
  7. 7. Group of Testcases
  8. 8. Running Tests and Analyzing Results
  9. 9. Running Tests and Analyzing Results
  10. 10. 1. http://learnyousomeerlang.com/common-test-for-uncommon-tests 2. http://erlang.org/doc/apps/common_test/users_guide.html 3. http://eax.me/erlang-testing 4. https://stackoverflow.com/questions/19608156/testing-erlang- applications-based-on-cowboy-using-common-test Useful Links
  11. 11. Sergey Bondarchuk I'm writing the code on Erlang for 2 years. Like to solve non-trivial tasks, like to do code optimizations and refactoring. Outside of work I like good companies, playing guitar, to do self-education. s.bondarchuk.mail@gmail.com https://www.linkedin.com corezoid.com About me
  12. 12. Questions?