Test Driven Development

Get Started. It's Free
or sign up with your email address
Test Driven Development by Mind Map: Test Driven Development

1. Proposed Outline Revised

2. dsb thoughts/ideas/questions

2.1. Is our idea basically to put the structure of this book into an interactive course that uses JavaScript instead of Rails as its base?

2.2. How will we have these two ideas interact

2.2.1. The idea of TDD and the pedagogical backing and the productivity buy in

2.2.2. The testing program langauge and syntax themselves

2.2.3. I think we want them to flow in and out of each other. Coming together and then seperating (is there a name for that pattern/relationship?

3. TDD Project Overview


3.1.1. 1) Introduction Essential questions What is testing? What is automated testing? What is the purpose of testing? How does it benefit the team, product, process, and codebase? What are the costs and benefits of testing? What are the tradeoffs between manual and automated testing? When to test and when not to test? Topics Use guiding questions to interact with website Can you find the bugs in the website? How would you start to fix these bugs? Run a test suite and compare to what you found Regression Customer service reports bug When you don't need to test Conclusion Required Resources Intro (Context Item) Why test (lesson, quiz, project) Setup environment (Lesson or Article) When you don't need to test (Article) Off-platform project: Setup testing environment on your computer

3.1.2. 2) Fundamentals of Testing Essential questions What is a ‘good’ test? What are the fundamental functions of <TBD testing framework(s)> and how are they used? What is TDD and how does it work? What are unit and integration tests, and when should each be used? Topics What's a good test Manual repl testing Introduce technology (Mocha) When to write a test Use TDD with unit tests to develop calculator (all in one layer -- Calculator.XXXX) Introduce integration tests Required Resources Intro (Context Item) Manual testing (Lesson, quiz, project) What's a good test (Article) Testing with Mocha (Lesson, quiz, project) When to write a test (Article) What is TDD + red-green-refactor (Article) TDD with Mocha (Lesson, quiz, project) Integration tests (Lesson, quiz, project) Off-platform project

3.2. Section 1

3.2.1. Why test?

3.2.2. Setup environment

3.2.3. When you don't need to test

3.2.4. Setup testing environment on your computer

3.3. Section 2

3.3.1. Manual testing

3.3.2. What's a good test

3.3.3. Testing with Mocha

3.3.4. When to write a test

3.3.5. What is TDD + red-green-refactor

3.3.6. TDD with Mocha

3.3.7. Integration tests

3.3.8. Unit + integration test of simple HTML/CSS/JS application

3.4. Section 3

3.4.1. Testing pyramid

3.4.2. Outside-in

3.4.3. Testing: Features

3.4.4. Testing: Server

3.4.5. Testing: Database

3.4.6. Refactor a green suite

3.4.7. Outside-in with TDD (Lesson, quiz, project)

3.4.8. How testing integrates into a real development process

3.4.9. Build full-stack testing suite without React

3.5. Section 4

3.5.1. Client-server interaction

3.5.2. Testing: Requests

3.5.3. Testing: React JSX

3.5.4. Testing: React State

3.5.5. Where React fits into pyramid

3.5.6. Refactor submission to JS request, view to JSX, and add notion of "read comments" to blog.

3.6. Section 5

3.6.1. Build testing suite for full-stack web application

3.7. Context Items

3.7.1. Context Items for content

3.7.2. Context for unit intros and conclusions

3.7.3. Context items for Pre-req Unit

3.8. 1

4. Fundamentals of TDD ThoughtBot Course

4.1. write a test - make it past - write a test-make it past

4.1.1. distinct from test less approach. Where you save testing for the end if you have time which you never do


4.2.1. Test-Driven Development is a development technique where you write a failing test and then create code to make that test pass. This process is sometimes called a red-green-refactor cycle with the failing tests being the "red" state, passing tests being the "green" state, and the refactoring step occurring after tests pass, where code can be confidently improved.

4.3. if you wrote a test for every feature then you know every feature works

4.3.1. otherwise you don't have anythign ot tell you when to stop

4.3.2. leads to bloated code and over development.

4.4. confidence to make changes to big chunks of the code

4.5. "I've heard testing is hard.'

4.5.1. maybe a little, but it's important. And it saves time in the long run and allows you to confidently maintain and change your code base.

4.5.2. So it is more work to do test driven development, but it's important and worth it work. And if you have a full suite of regression tests, you can be confident in contiuing to change your code base