Skip to content

Commit 56d2a24

Browse files
Merge branch 'main' into heet-designSupport
2 parents 10687cd + 53d6f58 commit 56d2a24

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

UnitTests/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Testing framework to check all RFEM Python Client objects and types. Using `pyte
1111
* RFEM 6 application
1212

1313
### Step by step
14-
1) Open RFEM 6 application. Always set language to English. The best version of RFEM is current GM, unless you are testing features that are not merged. Check if there are no opened dialogues in RFEM and server port range under *Options-Web Services* corresponds to the one set in initModel.
14+
1) Open RFEM 6 application, NoAssert mode if possible. Always set language to English. The best version of RFEM is current GM, unless you are testing features that are not merged. Check if there are no opened dialogues in RFEM and server port range under *Options-Web Services* corresponds to the one set in initModel.
1515
2) Run whole `.\UnitTests` folder to exetue tests or `.\UnitTests\Examples.py` to execute all examples. This ensure maximum scope. Execution is independent of current working directory. Pytest has many parameters it can be runned with. Refer to help (via `pytest -h`) or documentation. Ensure that all tests are either passed or skipped conditionally.
1616
```
1717
> py -m pytest --tb=no .\RFEM_Python_Client\UnitTests # silent mode
@@ -24,7 +24,7 @@ output:
2424
![image](https://user-images.githubusercontent.com/37547309/147245670-db248e57-95f6-4f00-9b5b-8a89033dcc2a.png)
2525
Indication: . - passed, s - skipped, e - error, f - failed
2626

27-
3) To assess code coverage, run `coverage`. Pytest can be executed inside coverage process, leaving nothing out. Coverage enables to automaticaly create formated output (html, json, or dxf). Again, for more information refer to help (`coverage -h`) and html (`coverage html -h`). In html the results can be sorted out or filtered. Files can be inspected separately. Coverage results can be directed into UnitTests folder since they are ignored by github and they will not be commited to repository. Use separate folder for the results. There is a lot of files generated.
27+
3) This step is optional. To assess code coverage, run `coverage`. Pytest can be executed inside coverage process, leaving nothing out. Coverage enables to automaticaly create formated output (html, json, or dxf). Again, for more information refer to help (`coverage -h`) and html (`coverage html -h`). In html the results can be sorted out or filtered. Files can be inspected separately. Coverage results can be directed into UnitTests folder since they are ignored by github and they will not be commited to repository. Use separate folder for the results. There is a lot of files generated.
2828
```
2929
> py -m coverage run -m pytest --tb=no .\RFEM_Python_Client\UnitTests
3030
...

0 commit comments

Comments
 (0)