File: README.md

package info (click to toggle)
freeorion 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 194,940 kB
  • sloc: cpp: 186,508; python: 40,969; ansic: 1,164; xml: 719; makefile: 32; sh: 7
file content (20 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Test runner

These tests are supposed to be run outside the game engine.
Tests run automatically on Travis for each PR
and can be executed on the local machine.

## Requirements for local run
 - Install [pytest](http://pytest.org/latest/getting-started.html),
   use the same version as mentioned in [.travis.yml](/.travis.yml#L1).

## Run test
 - open console (`cmd` or `PowerShell` for win)
 - execute  `pytest`

If you want to run specific tests see
[pytest documentation](https://docs.pytest.org/en/latest/usage.html#specifying-tests-selecting-tests)

If you need to test a module that is not in the python path,
add it to [conftest.py](conftest.py#L1),
this file is executed before import of the test files.