在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:tddbin/tddbin-frontend开源软件地址:https://github.com/tddbin/tddbin-frontend开源编程语言:JavaScript 84.4%开源软件介绍:TDDbin.com FrontendThis project contains all the UI stuff for TDDbin, it is runnable separately without any backend and aims to provide all components modularly. Please get involved on trello and vote or add ideas, comments, etc.. The highest ranked ideas will be the priority for us to implement. DevelopmentThe short version using Nix (light-weight docker)Run The short versionIn your shell:
The long versionIn order to run this project locally make sure you have at least nodejs 0.10 installed
Now you can
and open the built version in the browser. Be sure to open the Using the katas serviceAll pre-built katas are hosted in katas-service repo. Which gets deployed to http://katas.tddbin.com from where all the katas can be loaded and which can be updated independently, micro-service style :). Do I need it?If you want to work on the katas-service repo and want to load the katas into
tddbin you might want to set up both repos to work with each other. How to set it upYou don't need the katas-service to run locally, tddbin works also fully-functional without it. Coding styleThe coding style is checked by running How to contributeIn order to contribute please provide a pull request, add a description to what your code does and how it is useful. It will be commented, discussed, maybe you need to adapt things and then it might be merged. Test runnersThe execution of tests takes place in a separate component, which can be hooked in where needed. This way adding a new test runner (e.g. qunit, tap, etc.) will be easy as long as it complies to the API that a test runner has to provide. Jasmine RunnerIt is in this repo, but is not finished. Due to jasmine's stubborn architecture that doesn't allow to reinstanciate it for a new test run as it would be needed for a single page app I just left it ... it's basically unusable :(. To try what it currently can do run the examples/test-runner/jasmine.html in your browser. Mocha RunnerThe mocha runner is integrated and will most probably become the default runner. For an example navigate in your browser to the examples/test-runner directory. Assertion APIsMocha is assertion API agnostic, it brings it's own assert() function by default, that can be used. By adding plugins various other styles can be provided. See below which ones come with it. Jasmine-style (currently not working, see code)It is enhanced with referee, which provides jasmine-style expect methods. The tests can be written the same way as with jasmine (for the biggest part) - at least all standard matchers are available, for details see the docs. Should-styleAlso should-style assertions can be used. Thanks to Roman Liutikov pointing that out, it was added. On how to use them see the should.js documentation. Custom runnerThis architecture allows to add any kind of runner now. The easiest way for now is to duplicate the mocha runner and the example and get one up and file it as a pull request. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论