Skip to content

Commit 4cef462

Browse files
Merge pull request #6 from bcrawford39GT/add_instructions
added instructions on how to run the examples and pytest to test the …
2 parents a42f407 + 2f11612 commit 4cef462

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,37 @@ Create and install conda package:
2525
Note: If you update the conda package, you may have to redo the pip install. Without doing this, it may allow incompatable versions of the dependencies to be installed, etc.:
2626

2727
`pip install -e .`
28+
29+
### Run the example
30+
31+
This is an example of the supplimentary functions in the utils directory (github_tutorial/utils) and the main function in the main_functions directory (github_tutorial/main_functions).
32+
33+
The example is located here 'examples_to_run/examples.py'. The instructions to run it are provided below:
34+
35+
`cd examples_to_run`
36+
37+
`python examples.py`
38+
39+
40+
### Run the test cases using pytest
41+
42+
Each python file has it's own test functions scripts located here 'github_tutorial/tests', which are used to ensure proper functionallity when making changes to the code, or if python dependancies alter how some functions behave.
43+
44+
Run all the tests:
45+
46+
`cd github_tutorial/tests`
47+
48+
`pytest`
49+
50+
Run individual test on 'test_math.py':
51+
52+
`cd github_tutorial/tests`
53+
54+
`pytest test_math.py`
55+
56+
Run individual test on 'test_main_functions.py':
57+
58+
`cd github_tutorial/tests`
59+
60+
`pytest test_main_functions.py`
61+

0 commit comments

Comments
 (0)