[boblog] How to test steemgg | [bob日志] 如何测试steemgg

in #steemgg8 years ago (edited)

First thing first, thanks to @maiyude LOGO design for steemgg.

[EN]

Is testing https://steemgg.com easy?
Of course not.

Backend Level

API Level

  • TODO: Yep, it's not covered at this moment. Sorry, guys.
  • Though the API is public, but we're not officially announce it's public. So we still have time prepare test cases for API testing.

UI Level

  • TODO: We will consider TestCafe to test UI automatically for each build. (NOT Selenium/Webdriver).
  • UI build is triggered on Travis and deployed to our dev environment automatically.

Code Changing Process

  • dev -> staging -> prod
  • dev environment is pushed automatically for each commit to develop branch.
  • staging environment is pushed after all necessary changes merged from develop to master branch.
  • prod environment is pushed after stable tag is marked on master branch.

Dev & Testing Process

  • Developer commit the changes with issue numbers (eg. #225), then mark issue label to 'fixed/done'
  • Tester verify changes on different environment and mark them with different issue labels as below:
  • dev - test new feature/bug fixing
  • staging - test new feature/bug fixing, and Regression
  • prod - test new feature/bug fixing, and Smoke, and Exploring

Keep Going

  • Testing https://steemgg.com is fun.
  • If you like testing, welcome to join.
  • Any idea or feedback, welcome.

Support steemgg

[CN]

测试 https://steemgg.com 容易吗?
当然不.

后端测试

  • steemgg 使用 'Mocha testing framework' 来运行 Unit Test.
  • 我们使用了 Travis 作为 CI (Continuous Integration 持续集成工具) 来自动集成每次新的代码提交。

API测试

  • TODO: 对,这个现在还没来得及做. 不好意思,乡亲父老们.
  • 我们还没有正式对外宣称我们的API是对外公开的,虽然代码都已经公开在那里了. 所以我们既然官方还没有承认这个公开的事实,那么我们就还有时间来做这个API测试. 为啥感觉我说得像掩耳盗铃一样的感觉...

前端测试

  • TODO: 我们会考虑采用 TestCafe 来进行UI自动化测试. (NOT Selenium/Webdriver).
  • UI build 目前也是通过 Travis 自动部署到开发环境.

代码更新流程

  • dev -> staging -> prod
  • 每一次在develop的代码提交会自动部署到dev环境.
  • 所有必要的修改从develop合并到master分支后,才推到staging环境.
  • 当master分支正式打上tag后,会推到prod环境.

测试流程

  • 开发人员在提交代码的同时附上issue的编号(比如#225),并且标注issue的状态为‘fixed/done’.
  • 测试人员在不同的环境下分别进行测试,并根据具体环境的验证情况进行issue状态标注,用来表示在什么环境下已经通过测试:
  • dev - 主要测试新功能和bug修复.
  • staging - 主要测试新功能和bug修复,以及回归测试.
  • prod - 主要测试新功能和bug修复,以及冒烟测试和探索式测试.

继续加油

  • 测试 https://steemgg.com 其实很有挑战,也很有趣.
  • 如果你也喜欢测试,欢迎来玩.
  • 任何点子或返回,欢迎来稿.

支持 steemgg


Thanks for reading, buddies. :)

h2yl6vv7g06zkcq56ok5.jpg

Vote @bobdos as Witness

Or go to https://steemit.com/~witnesses and Vote @bobdos

Coin Marketplace

STEEM 0.04
TRX 0.33
JST 0.098
BTC 64656.44
ETH 1865.47
USDT 1.00
SBD 0.38