Skip to content
Permalink
Browse files
fix(reporting): themes, Capabilities and Features are correctly tagge…
…d and appear in the report.

affects: @serenity-js/core

Please note that if your acceptance tests are not stored in the default ./features directory you
will need to set the requirementsDirectory in the Serenity/JS config.
See
http://serenity-js.org/overview/configuration.html#requirements-directory

ISSUES CLOSED: #75, #81
  • Loading branch information
jan-molak committed Oct 1, 2017
1 parent d696ec9 commit 9bbcf811faf7bf96f94287ebed8cd26c5953a06c
Show file tree
Hide file tree
Showing 4 changed files with 211 additions and 74 deletions.
@@ -201,18 +201,36 @@ serenity: {
:bulb: **PRO TIP**: You can define your own Stage Crew Members to produce custom reports or integrate
with your infrastructure.

## Requirements directory

By default, Serenity/JS assumes that your acceptance tests, in the form of either
[Cucumber `*.feature` files](../cucumber/automation.md#location-location-location)
or [Mocha `*.spec.ts` files](../mocha/overview.md#directory-structure),
are kept in the `features` directory under the project root.
It also assumes that you run your acceptance tests from the project's root directory.

This means that the default configuration of the `requirementsDirectory` looks as follows,
but you can change it to better fit the structure of your project:

```javascript
serenity: {
requirementsDirectory: `${process.cwd()}/features`
}
```

## Output directory

Serenity/JS produces `.json` reports (optionally accompanied by screenshots)
and stores them under the `target/site/serenity` directory
and stores them in the `target/site/serenity` directory (relative to where you're executing the tests from)
where they can be processed by [Serenity BDD CLI](https://www.npmjs.com/package/serenity-cli)
to create the [HTML reports](reporting.md).

To change this default location, configure the `outputDirectory` property:
This means that the default configuration of the `outputDirectory` looks as follows, but you can change it
to better fit the structure of your project:

```javascript
serenity: {
outputDirectory: `my/custom/path`
outputDirectory: `${process.cwd()}/target/site/serenity/`
}
```

0 comments on commit 9bbcf81

Please sign in to comment.