Sha256: 15cddb1f07d928fd619a38767a3a940b244819d0fdc9a4fbf6330b5725ee524b

Contents?: true

Size: 1.01 KB

Versions: 15

Compression:

Stored size: 1.01 KB

Contents

[<< back](README.md)

# Example: 09-preserve

Every time we run teuton test, older output report files are overwritten with new reports. if you want to preserve old versions then use `preserve`.

With `preserve` option we keep older copies.

1. [Execution section](#execution-section)
2. [Result](#result)

## Execution section

Take a look at our test execution section (Play):
```ruby
play do
  show
  export preserve: true
end
```

> More information about [export](../dsl/execution/export.md) keyword.

## Result

Example, executing `teuton run example/09-preserve` twice:

```
var
└── learn-09-preserve
    ├── 20200519-113035
    │   ├── case-01.txt
    │   ├── moodle.csv
    │   └── resume.txt
    ├── 20200519-123039
    │   ├── case-01.txt
    │   ├── moodle.csv
    │   └── resume.txt
    ├── case-01.txt
    ├── moodle.csv
    └── resume.txt
```

* The first time test was launched at 11:30, and second at 12:30 the same day.

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
teuton-2.9.2 docs/learn/12-preserve.md
teuton-2.9.1 docs/learn/12-preserve.md
teuton-2.9.0 docs/learn/12-preserve.md
teuton-2.8.0 docs/learn/12-preserve.md
teuton-2.7.3 docs/learn/12-preserve.md
teuton-2.7.2 docs/learn/12-preserve.md
teuton-2.7.1 docs/learn/12-preserve.md
teuton-2.7.0 docs/learn/12-preserve.md
teuton-2.6.0 docs/learn/12-preserve.md
teuton-2.5.0 docs/learn/12-preserve.md
teuton-2.4.5 docs/learn/12-preserve.md
teuton-2.4.4 docs/learn/12-preserve.md
teuton-2.4.3 docs/learn/12-preserve.md
teuton-2.4.2 docs/learn/12-preserve.md
teuton-2.4.1 docs/learn/09-preserve.md