You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

i18n.feature 2.7 kB

2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. @needs-many-fonts
  2. Feature: i18n
  3. It's possible to ask cucumber which keywords are used for any
  4. particular language by running:
  5. `cucumber --i18n-keywords <LANG>`
  6. This will print a table showing all the different words we use for
  7. that language, to allow you to easily write features in any language
  8. you choose.
  9. Scenario: Get help for Portuguese language
  10. When I run `cucumber --i18n-keywords pt`
  11. Then it should pass with:
  12. """
  13. | feature | "Funcionalidade", "Característica", "Caracteristica" |
  14. | background | "Contexto", "Cenário de Fundo", "Cenario de Fundo", "Fundo" |
  15. | scenario | "Exemplo", "Cenário", "Cenario" |
  16. | scenario_outline | "Esquema do Cenário", "Esquema do Cenario", "Delineação do Cenário", "Delineacao do Cenario" |
  17. | examples | "Exemplos", "Cenários", "Cenarios" |
  18. | given | "* ", "Dado ", "Dada ", "Dados ", "Dadas " |
  19. | when | "* ", "Quando " |
  20. | then | "* ", "Então ", "Entao " |
  21. | and | "* ", "E " |
  22. | but | "* ", "Mas " |
  23. | given (code) | "Dado", "Dada", "Dados", "Dadas" |
  24. | when (code) | "Quando" |
  25. | then (code) | "Então", "Entao" |
  26. | and (code) | "E" |
  27. | but (code) | "Mas" |
  28. """
  29. Scenario: List languages
  30. When I run `cucumber --i18n-languages`
  31. Then cucumber lists all the supported languages
  32. Scenario: Seek help for invalid language
  33. When I run `cucumber --i18n-keywords foo`
  34. Then the output includes the message "Invalid language 'foo'"
  35. And cucumber lists all the supported languages

No Description

Contributors (1)