pyhistorian.

ÁÖ¾îÁø ½ÃÁ¡À» »ç¿ëÇÏ¿© »ç¾çÀ» ÀÛ¼ºÇϱâÀ§ÇÑ BDD µµ±¸
Áö±Ý ´Ù¿î·Îµå

pyhistorian. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • MIT/X Consortium Lic...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Hugo Lopes Tavares
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://github.com/hugobr/

pyhistorian. ű×


pyhistorian. ¼³¸í

ÁÖ¾îÁø - ¾ðÁ¦ ÅÛÇø´À» »ç¿ëÇÏ¿© »ç¾çÀ» ÀÛ¼ºÇϱâÀ§ÇÑ BDD µµ±¸ PyhistorianÀÇ ¸ñÇ¥´Â PythonÀ» »ç¿ëÇÏ¿© ³»ºÎ ÁÖ¾îÁø ÅÛÇø´À» ÀÛ¼ºÇÏ´Â °ÍÀÔ´Ï´Ù. ¾ÆÀ̵ð¾î´Â jbehave, rbehave, cucumber, ´Ù¸¥ »ç¶÷µéÀÌ ¿Ô½À´Ï´Ù. ¿µ¾î¿Í Æ÷¸£Åõ°¥¾î·Î À̾߱⸦ ¾µ ¼ö ÀÖ½À´Ï´Ù. ´ç½ÅÀÇ ¼±È£¸¦ ¼±ÅÃÇÏ°í, ´ç½ÅÀÇ ¼±È£¸¦ ¼±ÅÃÇϽʽÿÀ. ÁÁÀº »ç¿ëÀÇ ¿¹ [en-us, ±âº»Àû À¸·ÎÀÌ ÆÄÀÏ calculator.py È£Ãâ)¿¡¼­ shest_dsl * class calculator (object) : n1 + n2class sumscenario (½Ã³ª¸®¿À) : @ given ( '°è»ê±â°¡ÀÖ´Ù') def set_my_calculator (self) : self. self. self. calculator = calculator () @when ( '1 + 1'·Î ÀÔ·Â) DEF sum_one_to_one (self) : self.sum = self.calculator.sum (1, 1) @then ( '³ª´Â °á°úÀûÀ¸·Î'°á°úÀûÀ¸·Î '°á°ú°¡ ÀÖ½À´Ï´Ù') def twer_as_result (ÀÚ±â) : self.sum | sheek_be.equal_to | 2if __name__ == '__main__': calculator_story = À̾߱â (Á¦¸ñ = '³» »õ·Î¿î °è»ê±â'ÁöÁ¤, as_a = '°ÔÀ¸¸¥ ¼öÇÐÀÚ', i_want_to = '³ªÀÇ ¸¶À½ÀÌ ³ª°¡', so_that = "³ª´Â ½Ã°£À» ³¶ºñÇÏÁö ¾Ê´Â´Ù") sum_scenario = sumscenario ( '1 ¹× 1'ÀÇ ÇÕ°è) (calculator_story.add_scenario) ½ÇÇà : $ python calculator.pystory : »õ·Î¿î calculators ÁöÁ¤ °ÔÀ¸¸¥ ¼öÇлýÀÌ ³ªÀÇ ³¶ºñ¸¦ ³¶ºñÇÏÁö ¾Ê´Â °ÔÀ¸¸¥ ¼öÇлýÀ» ½¬°í ½Í¾îÇÕ´Ï´Ù. ½Ã°£ thinkingscenario 1 : 1 + 1·Î µé¾î¿Ã ¶§ 1 + 1À» ÀÔ·Â ÇÒ ¶§ ... OK´Â ´ÙÀ½°ú °°ÀÌ ... OK ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã


pyhistorian. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

qtwui.

TrollTechÀÇ Qt ¶óÀ̺귯¸®¸¦ ±â¹ÝÀ¸·Î À¥ À§Á¬ ÅøŶÀ» Á¦°øÇÏ´Â ¶óÀ̺귯¸® ...

209

´Ù¿î·Îµå