Skip to content

Instantly share code, notes, and snippets.

@jeneve
Last active July 4, 2016 04:40
Show Gist options
  • Save jeneve/1755da8b035b3a7c4d9b48d854203cfc to your computer and use it in GitHub Desktop.
Save jeneve/1755da8b035b3a7c4d9b48d854203cfc to your computer and use it in GitHub Desktop.

Testing Homework - Rails/JS

Feature Testing

Your experience implementing

I chose to implement selenium in my idea box. It was tricky, but I was not the first person to run into the issues I had so it was easy to find the answers I needed on stack overflow. One weird thing I had to do was downgrade my version of firefox to 19 (from 47!) It worked...so, I don't care.

Were you successful?

At first (after aforementioned weirdness with configuration) it worked great, and I wrote passing tests for seeing all of the ideas on the page and for creating an idea. Then I wrote a test for deleting an idea, which should have passed, but didn't. I got the feeling that it was a waste of my time to write feature tests when I couldn't debug them and needed to test using the browser anyways. So, I gave up and just browser-tested everything from that point forward. When I pushed my app into production (at midnight before it was due), my delete method didn't work. I went through the painful proccess of debugging production and eventually just made a slight change to the syntax of my delete function that fixed the problem. I still don't really know why it worked in developement. during my evaluation I got the idea that I probobly ought to unskip the delete feature test and run it again-- it passed!. I wish I known....um....something I still don't really know (about the difference between developement and production/test enviroments?) because I would have continued to test-drive the developement of the other features.

Links to commits on Github or copy and pasted code snippits of a test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment