I recently started looking at ember-testing, and it shows a lot of promise. However, my app is very data intensive so I’m testing things like creating new records and then testing for them to be displayed. Previously, I was using Capybara request specs and had used database_cleaner in-between tests to ensure I wasn’t polluting the test database and invalidating my tests.
This afternoon, I played around with creating a database_cleaner controller in Rails. I can then clean the database in each QUnit (or Jasmine, etc) teardown (or setup) callback. This has been a big pain point for me, and I think this solution could help.
Has anyone else had problems with polluting the test database when doing ember-testing integration tests? What types of solutions if any have you seen or used? Does the one I’m proposing here sound useful?