narqo / bem-pr

A set of bem-make extenstions to wrap common infrastructure's tasks
12 stars 22 forks source link

Use "tests" levels as functional testing examples #61

Closed narqo closed 10 years ago

narqo commented 10 years ago

We should split our current examples into two parts: so called "examples for documentation" and "examples for functional testing".

First part (current <block>.examples) will be used to show block's functionality which is interesting for users. Second part would consists of development specific cases of usage of the block.

narqo commented 10 years ago

I think that this kind of levels should be called specs not tests. So the building "targets" would be:

› bem make common.tests
› bem make common.specs
› bem make desktop.examples

@veged @dfilatov, need your opinion

dfilatov commented 10 years ago

I think current tests should be renamed to specs (and *.test.js files should be renamed to *.spec.js too). Our current tests have been written as BDD specs.

veged commented 10 years ago

@dfilatov +1

narqo commented 10 years ago

:joy_cat: :+1: