BDD 테스팅툴 원래 이렇게 생겨먹음?
피치피(202.150)
2022-11-02 23:25
추천 0
![a04424ad2c06782ab47e5a67ee91766dc289f1edd2acc5cabf13d0c15bd2d421542a53db1179e44bce6b391f8e11]()
https://codeception.com/docs/BDD
코드셉션 공식문서 BDD
ㅅㅂ 이게 영어야 테스팅 코드야..ㄷ
또다른 테스트 코드 예시
걍 작문이누?
행위주도라서 그런가
Feature: Multiple site support
Only blog owners can post to a blog, except administrators,
who can post to all blogs. // 이건 설명이라서 코드 아님
Background:
Given a global administrator named "Greg"
And a blog named "Greg's anti-tax rants"
And a customer named "Dr. Bill"
And a blog named "Expensive Therapy" owned by "Dr. Bill"
Scenario: Dr. Bill posts to his own blog
Given I am logged in as Dr. Bill
When I try to post to "Expensive Therapy"
Then I should see "Your article was published."
Scenario: Dr. Bill tries to post to somebody else's blog, and fails
Given I am logged in as Dr. Bill
When I try to post to "Greg's anti-tax rants"
Then I should see "Hey! That's not your blog!"
Scenario: Greg posts to a client's blog
Given I am logged in as Greg
When I try to post to "Expensive Therapy"
Then I should see "Your article was published."
이거 아무것도 테스팅 안되는듯.. 그냥 망상개발
아닌데 테스팅 잘되는데 무슨 망상이래