videojs / video.js

Video.js - open source HTML5 video player
https://videojs.com
Other
37.59k stars 7.4k forks source link

VJS 5: Tech Unit Test Specs #2004

Open eXon opened 9 years ago

eXon commented 9 years ago

When you want to build a tech, you are completely left in the dark. You don't know what you are doing. The only hope you have is to look at how the HTML5 and Flash techs are built and do some trial and errors to make your own work. Just knowing if you are handling every possible events you could is hard.

There is something we can do about it. What about a set of unit test specs that you could run any tech and spit out what is broken?

heff commented 9 years ago

Yeah, I think this would be great. We talked about this (or at least a similar idea) over a year ago in #835. 835 is more of a template while this issue is more of a TDD approach. But both I think could be combined in a yeoman generator. I think we should get through some of the other Tech 2.0 architecture pieces first because some core things will change, but I'd love to see this done if you'd be interested in working on it.

eXon commented 9 years ago

I also have a proposal for Tech 2.0 and how it should interact with the player. I think it will blend well with what you had in mind on #1485

I'll send a first draft in the upcoming weeks.