-
Notifications
You must be signed in to change notification settings - Fork 57
Integration Tests #416
Comments
Putting this in 3.3.0 milestone. We should probably create five to ten integration tests for the most common scenarios that we have in our user documentation? |
If we really change up how the reservation workflow goes (via #523) we should either hold off on these tests or do like the real TDDrs do and write these tests with that new workflow in mind |
Important Workflows
|
Conclusions after trying for a few hours to set up an integration test: this stuff is not for CAS. Controller stubbing is strongly discouraged in feature/request/integration testing and I wasn't able to bypass the current_user method in application controller to get to the meat of the app. The only way this could go forward is if we had access to a dummy CAS account. The dev would have to log into this account manually in the browser and then run the test (which creates a user with the same netID). I'm moving this out of 3.3.0 but I'm not closing, as this information may be useful in the future and/or if anyone every figures out how to deal with this. |
As a sidenote, this is a strong incentive to get #2 done. |
Yes definitely. Maybe we can push for that for 4.1.0? |
We are getting help from ITS regarding integration tests w/ Rails apps; I will update this issue with more information as it becomes available. |
RubyCAS apparently has a method to fake CAS: https://github.com/rubycas/rubycas-client#testing We should put this to good use and get those integration tests up and running! |
Started writing up some helpers and tests for basic reservation actions. These tests are taking a while, though, so I'm worried about bloating our test suite... |
Ok, equipment handling is done, working on renewals now. |
Looking at Travis, it looks like I've somehow broken some of our other specs ( |
Nope, we've got intermittently failing specs again :-. I fixed the |
Ok, this is basically ready; I don't know what "admin routes" I meant above, so I'm going to open a PR. Woot! |
Resolves #416 - add tests for Reservation actions (creation, equipment handling, renewal) - add tests for Rails Admin routes - resolve issue with renewals (see #1218) - add numerous helpers for integration tests - misc cleanup of other tests - resolve deprecation warning reintroduced by #1081 - clean up tests from #987
Resolves #416 - add tests for Reservation actions (creation, equipment handling, renewal) - add tests for Rails Admin routes - resolve issues with renewals (see #1218) - add numerous helpers for integration tests - misc cleanup of other tests - resolve deprecation warning reintroduced by #1081 - clean up tests from #987
Resolves #416 - add tests for Reservation actions (creation, equipment handling, renewal) - add tests for Rails Admin routes - resolve issues with renewals and add specs (see #1218) - add numerous helpers for integration tests - misc cleanup of other tests - resolve deprecation warning reintroduced by #1081 - clean up tests from #987
Resolves #416 - add tests for Reservation actions (creation, equipment handling, renewal) - add tests for Rails Admin routes - resolve issues with renewals and add specs (see #1218) - add numerous helpers for integration tests - misc cleanup of other tests - resolve deprecation warning reintroduced by #1081 - clean up tests from #987
Resolves #416 - add tests for Reservation actions (creation, equipment handling, renewal) - add tests for Rails Admin routes - resolve issue with renewals (see #1218) - add numerous helpers for integration tests - misc cleanup of other tests - resolve deprecation warning reintroduced by #1081 - clean up tests from #987
Resolves #416 - add tests for Reservation actions (creation, equipment handling, renewal) - add tests for Rails Admin routes - resolve issues with renewals and add specs (see #1218) - add numerous helpers for integration tests - misc cleanup of other tests - resolve deprecation warning reintroduced by #1081 - clean up tests from #987 - refactored the for_eq_model Reservation scope not to call .finalized
Resolves #416 - add tests for Reservation actions (creation, equipment handling, renewal) - add tests for Rails Admin routes - resolve issues with renewals and add specs (see #1218) - add numerous helpers for integration tests - misc cleanup of other tests - resolve deprecation warning reintroduced by #1081 - clean up tests from #987 - refactored the for_eq_model Reservation scope not to call .finalized
#2015-03-02
Here are things we should have tests for:
Original
Start making some integration tests, probably most important to do this for the process of making a reservation.
The text was updated successfully, but these errors were encountered: