Logo da Alura
Data >

Course of Clojure: Generators and property tests

Course summary

  • Use generators to create valid values for your models and functions.
  • Use generators to create invalid values.
  • Learn the difference between classic automated and property testing
  • Implement complex property tests that validate part of the system

Target Audience

Those who want to code and learning Clojure

Related Content

Courses of Data

Last update

31/07/2020

Already a student?

Start the course now

8h

To conclusion

39

Activities

208

Minutes of video

115

Students in this course

8.7

Grade for this course

Certificate of participation

Instructors

Detailed content

  1. Generators

    • Tests with manual generators
    • Which value to test?
  2. Prop-all and some problems with samples

    • Defspec and prop/for-all
    • The problem of using generative testing to test the code as if it were a sample
    • Do what I did in the lesson
    • For-all
  3. Property based testing

    • Property-based testing
    • Testing properties with the transfer
    • Generative functions
  4. Errors and properties

    • Ignoring errors
    • Creating transfer and testing a property
    • Properties and errors
  5. Challenges in our safety net

    • Challenges handling errors
    • Finding errors in our safety net
  6. Generating actions

    • Using Schema-based generators
    • Generating actions
    • Valid actions for our hospital
    • More complex generators
  7. Generic action-based property framework

    • The final hospital
    • A real validation
    • Concluding the complex validation
    • Property tests

Don't study with us yet?

Invest in your career!

Start now