Skip to content

Commit 1b3660e

Browse files
committed
adding example to run tests
1 parent 8c368e1 commit 1b3660e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

install/docker/Readme.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,31 @@ To use it, you can try this:
1818

1919
`docker run -ti fangohr/fidimag`
2020

21+
This command should show a bash prompt inside the docker container:
22+
23+
<pre>
24+
bin:docker fangohr$ docker run -ti fangohr/fidimag
25+
fidimag@38fdd2a0feb4:~$
26+
</pre>
27+
28+
One way to test the installation is to run the unit tests:
29+
30+
<pre>
31+
cd fidimag/tests/
32+
fidimag@38fdd2a0feb4:~/fidimag/tests$ py.test -v
33+
========== test session starts =======================
34+
platform linux2 -- Python 2.7.6 -- pytest-2.5.1 -- /usr/bin/python
35+
collected 63 items
36+
37+
field_test.py:7: test_initialise_scalar PASSED
38+
field_test.py:13: test_initialise_vector PASSED
39+
test_2dpbc_cube.py:10: test_compute_field PASSED
40+
test_anis.py:7: test_anis PASSED
41+
.
42+
.
43+
.
44+
</pre>
45+
2146
## Creating the docker container
2247

2348
## Shortcomings

0 commit comments

Comments
 (0)