-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actual tests #6
Comments
Once upon a time, using Zombie's I've tried:
No solution in sight, so test work is pretty much blocked by this issue |
It seems like both |
I think the only way past this blocker is to change to Zombie 4.x, thus forcing us to use Node.js 0.12+ which is pretty reasonable now that they're over 5.x |
Updating Zombie to 4.x and Node.js to 4.x solves these problems!!!! 🎉 Now comes the hard part... writing tests |
I believe these tests will all need to be rewritten using Browserstack... stay tuned 🕙 |
This will be a very helpful guide: http://www.redotheweb.com/2013/01/15/functional-testing-for-nodejs-using-mocha-and-zombie-js.html |
We need some coverage for #146 |
more potential guidance: https://github.com/Krinkle/travis-ci-node-and-browser-qunit |
@shakeelmohamed It looks like this issue is pretty old. Is it still relevant to work on? If so, do you have any tips on how I could get started? |
@joaniedavis there's plenty to do :) I would spend a few minutes playing around with the website and look to add some test that hit basic scenarios:
That's just one example, feel free to outline some test cases before writing them and I can let you know which ones make sense |
@shakeelmohamed I've spent some time digging through the code and the tests and I think I have a sense of how to write some more. Here's the basic list I'm thinking of starting with:
Do those sound like reasonable test cases? |
@joaniedavis yeah those seem like a great starting place. Yes, feel free to split up the tests into smaller files |
@shakeelmohamed I'm working on this still, but progress is slower since the current code structure is challenging to test. Do you have thoughts on breaking up |
@joaniedavis thanks, take your time. I'm more concerned with having functional tests that simulate user behavior than unit tests at this time. I think once we have sufficient functional tests we can think about a refactor into smaller modules. The main reason I started this was out of simplicity because I didn't want to introduce a build step since the website is hosted statically with GitHub pages. |
@shakeelmohamed I've spent a couple hours trying to get some additional functionality tests implemented, but I'm afraid I don't understand Javascript and the test framework well enough to make major improvements. Would you like me to submit the changes I have to just split up the tests into more manageable files anyway? |
@joaniedavis sure, let's take a look at what you've got so far and I can provide some pointers |
With #416, we now have an opportunity for a) test cleanup b) test utility functions and c) more tests |
There are some interesting AI tools that may help with test creation: https://github.com/jamesmurdza/awesome-ai-devtools?tab=readme-ov-file#testing |
The next tests need to be sending many different URL forms & user behaviors validating the JS object player which represents the YouTube player object that gets embedded and determine if the video is playing, also lots of error checking tests.
TODO:
The text was updated successfully, but these errors were encountered: