/beautiful-code-vs-mr-oldtype

jQuery refactoring and E2E Tests using testium.

Primary LanguageJavaScriptMIT LicenseMIT

jQuery refactoring with E2E Tests Build Status

のリファクタリングを適応する

目的

特定のバージョンでの変更点を簡単に確認できるよう、 「Aの列のラジオボタンを選ぶと同じ行より一つ下にあるBの列のラジオボタンを自動で選ぶ」 という補助を実装する

img

テスト方法

testiumを使ったE2Eテストで状態が壊れてないかをチェックしてリファクタリングを行う。

  • npm startnodeapps/http-serverを使ったローカルサーバを立てる
  • Mocha + testium + power-assert でテストケースを書く
  • リファクタリングを開始する
  • npm test でテストを動かし確認する

実践

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT