μΆκ° ν λ @ignore
μλ₯Ό Scenario
(κ°) 무μνμ§ μλ Scenario
,νμ§λ§ μ¬μ ν κ·Έκ²μ μ€νν©λλ€.
@D0rmouse @ignore
λ‘ μλ리μ€μ νκ·Έλ₯Ό λΆμΈ ν μ€μ΄
μ€μ΄.conf.jsλ₯Ό μ½λ grunt-protractor-runnerλ₯Ό μ¬μ©νμ¬ λ΄ Grunt λΉλμ ν΅ν©λμμ΅λλ€.
μ£μ‘ν©λλ€. μΆ©λΆν λͺ ννμ§ μμμ΅λλ€. Cucumberμ μ΄λ€ μ΅μ μ μ λ¬νκ³ μμ΅λκΉ?
cucumberOpts: {
require: 'cucumber/features/steps/*_steps.js',
format: 'pretty'
}
Cucumberμκ² νκ·Έλ₯Ό κΈ°λ°μΌλ‘ ν μλ리μ€λ₯Ό 무μνλλ‘ μ§μν΄μΌ ν©λλ€. Cucumberλ @ignore
νκ·Έμ μλ―Έλ₯Ό μμ§ λͺ»ν©λλ€.
κ²μ¦λμ§ μμ:
cucumberOpts: {
require: 'cucumber/features/steps/*_steps.js',
format: 'pretty',
tags: '~<strong i="8">@ignore</strong>'
}
μμΈν λ΄μ©μ cucumber.js --help
λ₯Ό μ°Έμ‘°νμΈμ.
λ€, κ°μ¬ν©λλ€. μ½μ΄λ³΄κΈ°μμ μ½μ λ°©μμΌλ‘λ μ¦μ μλν΄μΌ νλ κ² κ°μμ΅λλ€...
ν, READMEμ μ΄λ λΆλΆμ λκΉ?
OMG νν, λ°λ³΄ λ. κ·Έκ²μ https://github.com/cucumber/cucumber/wiki/Tags μΌ κ²μ
λλ€ :(
λ무 λ§μ νμ΄ μ΄λ¦° κ² κ°μ΅λλ€. λ²κ±°λ‘κ² ν΄μ μ£μ‘ν©λλ€...
κ±±μ λ§!
--tags
μ΅μ
μ΄ μλνμ§ μμ΅λλ€.
cucumber() {
return gulp.src("*.js", { read: false })
.pipe(shell("cucumber.js -r ./build/es5/test/cucumber/steps/CommonStepDefinitions.js --tags ~<strong i="7">@skip</strong> test/cucumber/features"));
}
-t ~@skip
λ¨μΆν€λ μ¬μ©
μ€μ΄ λ²μ : "0.10.2"
@hbakhtiyor μ νν μ΄λ»κ² μλνμ§ μλμ§ μ€λͺ ν΄ μ£Όμκ² μ΅λκΉ? 무μμ κΈ°λν©λκΉ? λμ μ΄λ»κ²λ©λκΉ?
@skip
λ‘ νμν μλ리μ€λ₯Ό 건λλ°μ§ μκ³
λν μ±κ³΅μ΄ μλ ν°λ―Έλμ ν΅ν΄ λͺ λ Ήμ μλνμ΅λλ€.
bash# cucumber.js -r ./build/es5/test/cucumber/steps/CommonStepDefinitions.js --tags ~<strong i="8">@skip</strong> test/cucumber/features
μ: entity.feature
Feature: [GET /entities] Get list of entities
# for success
<strong i="6">@skip</strong>
Scenario: Request for all published entities
Given collection of entities from entity/entities.json data file
And request "filter" query param's property "published" set to true
When I request GET /entities
Then the response status code is 200
And the response type is JSON
And the response matches entity/all-entities-published-only.json
@hbakhtiyor μ€μ΄ λ²μ μ΄ μ΄λ»κ²
μ€μ΄ λ²μ : "0.10.2"
0.9.2
λ²μ μ μ¬μ©νκΈ° μ μλ --tags
μ΅μ
μ΄ μλνμ§ μμκ³ 0.10.2
λ μλνμ§ μλ μ΅μ λ²μ μ μ¬μ©νμ΅λλ€.
0.10μμ νκ·Έ μΈν°νμ΄μ€κ° λ³κ²½λμμ΅λλ€ . μλ‘μ΄ μΈν°νμ΄μ€λ₯Ό μ¬μ©νκ³ μμ΅λκΉ?
.feature
νμΌμλ§ νκ·Έλ₯Ό μ¬μ©ν©λλ€.
κΈμ, κ·Έκ²μ λ§€μ° μ΄μν©λλ€. λΆμ νκ·Έμ κ΄λ ¨λ κΈ°λ₯ ν
μ€νΈ μ¬λ‘κ° μλ κ²μΌλ‘ 보μ΄μ§λ§ μ체 ν
μ€νΈμμ λΆμ νκ·Έλ₯Ό μ¬μ©νκ³ μμ΅λλ€. --tags @skip
μ΄(κ°) μ ν©ν©λκΉ? (건λλΈ μλ리μ€λ§ μ€ν)
λ°λλ μλνμ§ μμ΅λλ€
@charlierudolph νκ·Έ μ μΈλ₯Ό ν μ€νΈνλ μλ리μ€κ° μμλ€κ³ νμ ν©λλ€. κ·Έκ²μ μ°λ¦¬κ° ν μ€νΈ μ€μνΈλ₯Ό ν΅ν©ν λ μμ΄λ²λ Έμ κ²μ λλ€. λ°©κΈ νλ μΆκ°νμ΅λλ€.
@hbakhtiyor λ¬Έμ λ₯Ό μ¬νν μ μμ΅λλ€. μ½λλ₯Ό 곡μ ν μ μμ΅λκΉ?
npμ΄μ§λ§ μ½λ(λ¨κ³ μ μ, νν¬, ..)μ λ°λΌ λ¬λΌμ§λ μ΄μ λ 무μμ λκΉ?
@hbakhtiyor λ΄ λ§μ μμλλ‘ μλνμ§ μλ κΏκΊ½ κΏκΊ½ κΏκΊ½ κΏκΊ½ κΏκΊ½ κΏκΊ½ κΏκΊ½νκ±°λ μ€μ΄ μ€μ μ 곡μ νλ κ²μ΄ μ’μ΅λλ€.
~ @skip μ κ·Ό λ°©μμ΄ μλνμ§ μμ΅λλ€ - μ μ΄λ MacOSμμλ.
μ°λΆν¬ 16μμ [email protected]
μ κ°μ λ¬Έμ κ° μμ΅λλ€. cucumberjs --tags ~@smth
μ€νν λ νκ·Έ μ μΈκ° μλνμ§ μμ§λ§ --tags @smth
λ μ λλ‘ μλν©λλ€.
"μλνμ§ μμ"μ @smth
μ λ€λ₯Έ νκ·Έκ° μλ μλ리μ€κ° μ€νλμ§ μμμ μλ―Έν©λλ€.
λ¬Έμ κ° μ’ λ£λ μ΄μ λ 무μμ λκΉ? @jbprosλ₯Ό λ μ‘°μ¬ν μ μμ΅λκΉ?
λ¬Έμ κ° μ’ λ£λ μ΄μ λ 무μμ λκΉ?
@likerRr μ΄ λ¬Έμ λ 2λ μ @jbprosκ° μ 곡ν μ€λͺ μ΄ λ¬Έμ λ₯Ό λ§κ°ν @D0rmouse μκ² μΆ©λΆνκΈ° λλ¬Έμ μ’ λ£λμμ΅λλ€.
λ¬Έμ κ° λ°μνλ©΄ μ ν°μΌμ λ§λμΈμ.
λ―Έμ, μμμ΄
μ΄ μ€λ λλ λ«ν ν μ΅κ·Ό νλμ΄ μμκΈ° λλ¬Έμ μλμΌλ‘ μ κ²Όμ΅λλ€. κ΄λ ¨ λ²κ·Έμ λν μ λ¬Έμ λ₯Ό μ¬μμμ€.
κ°μ₯ μ μ©ν λκΈ
Cucumberμκ² νκ·Έλ₯Ό κΈ°λ°μΌλ‘ ν μλ리μ€λ₯Ό 무μνλλ‘ μ§μν΄μΌ ν©λλ€. Cucumberλ
@ignore
νκ·Έμ μλ―Έλ₯Ό μμ§ λͺ»ν©λλ€.κ²μ¦λμ§ μμ:
μμΈν λ΄μ©μ
cucumber.js --help
λ₯Ό μ°Έμ‘°νμΈμ.