[RUBY] [Test code learning / output]

▼ In this curriculum, write the test code of the application created in the curriculum of the previous chapter.

・ Last time, I created a simple Twitter account, so I learned the test code. It seems that he is often left to the fledgling work as an engineer, so I worked hard.

・ Describe it example arrangement expect (X) .to eq Y -Organize instances with FactoryBot Besides, the generation method with before and Faker. Organize the status of context.

◆ Creating test code for unit and combination. ・ First, create a model and controller by itself. -After that, create an integration test code using the instance, character string, and gem learned above. -Create integration test code for users, tweets, and comments. -Finally, the support module simplifies login.

▼ Summary ・ I felt that the amount and volume were small when I tried to write it, but the work of actually creating a file from scratch and writing the test code was extremely difficult for me as a beginner. .. .. .. However, when I saw the movement that works after entering the code each time in the terminal, my own growth and interest in programming increased. I still want to go to the next curriculum as soon as possible and learn more. Next year, I will enjoy learning to succeed in changing jobs as an engineer.

Recommended Posts

[Test code learning / output]
Learning output
Efficient test code
RSpec test code execution
[Spring] Controller exception output test
Memorandum (task: model test code)
Java test code method collection
[Rails] Test code using Rspec
Implementation of unit test code
Summary of 2020 programming learning output
test
Write test code in Spring Boot
test
test
test
Output JUnit test report in Maven
[RSpec] How to write test code
[Rails] Unit test code for User model
Introduce RSpec and write unit test code
CRuby code reading (3): rb_bug execution line output
What is the model test code testing
Write code that is difficult to test
Output using methods and constants Learning memo