Behavior-Driven Test Data
10-Sep-2020 1422
When running behavior tests, we seed the database with a defined snapshot called fixpoint. We do run the behavior test and save the resulting database state as another fixpoint. This method allows testing complex business processes in legacy applications without having to implement fixtures/factories upfront. By building one fixpoint on top of another, we can ensure that the process chain works without any gaps. Comparing each resulting database state at the end of a test with a previously recorded state ensures that refactoring did not have unintended side effects.
Behavior-Driven Test Data #ruby #rubydeveloper #rubyonrails #Behavior-Driven #test https://rubyonrails.ba/link/behavior-driven-test-data