theintern / intern-tutorial

Learn how to use Intern by following this tutorial!
http://theintern.io
144 stars 44 forks source link

add an example of how to put multiple suites in a module and use nested suites. #14

Closed johntrandall closed 9 years ago

johntrandall commented 9 years ago

add an example of how to put multiple suites in a module and use nested suites.

Tutorial states the following, but doesn't show a syntax example:

These pieces can be visualized in a hierarchy, like this:

* test module
  * test suite
    * test suite
      * test case
        * ...
      * ...
    * test case
      * assertion
      * assertion
      * ...
    * ...
  * test suite
  * ...
* test module
* ...
johntrandall commented 9 years ago

I'm a n00b and I can't figure out how do do this. If you could please point me in the right direction so I can figure out how to accomplish this, I'll use it in my project and I'll also pretty up the docs.

csnover commented 9 years ago

Examples of nested suites using each of the supported interfaces are at https://github.com/theintern/intern/wiki/Writing-Tests-with-Intern#example-tests

johntrandall commented 9 years ago

thank you

csnover commented 9 years ago

Nesting suites is described in the test interfaces documentation in the user guide and those sections are linked from the tutorial, so I am going to close this for now, but please feel free to submit a PR if you would like to work it into the tutorial!