Skip to content
Snippets Groups Projects
Commit 2908a63f authored by Maël Madon's avatar Maël Madon
Browse files

the test suite now uses the installed executable rather than a relative path to the script

parent 80a50073
No related branches found
No related tags found
No related merge requests found
...@@ -20,11 +20,11 @@ Installation with `pip` without cloning: ...@@ -20,11 +20,11 @@ Installation with `pip` without cloning:
pip install git+https://gitlab.irit.fr/sepia-pub/mael/swf2userSessions pip install git+https://gitlab.irit.fr/sepia-pub/mael/swf2userSessions
``` ```
Clone and install with `flit`: Clone and install:
```terminal ```terminal
git clone https://gitlab.irit.fr/sepia-pub/mael/swf2userSessions git clone https://gitlab.irit.fr/sepia-pub/mael/swf2userSessions
cd swf2userSessions cd swf2userSessions
flit install pip install .
``` ```
You can then run the app from CLI by simply calling `swf2userSessions`. You can then run the app from CLI by simply calling `swf2userSessions`.
...@@ -55,4 +55,4 @@ For example use of the script, you can have a look at these two notebooks: ...@@ -55,4 +55,4 @@ For example use of the script, you can have a look at these two notebooks:
## Tests ## Tests
Some integration tests have been written for this script, and are stored in the `test/` folder. To run them on your machine, just type `pytest` at the root of the project. Some integration tests have been written for this script, and are stored in the `test/` folder. To run them on your machine, just type `pytest` at the root of the project after having installed the package.
\ No newline at end of file \ No newline at end of file
...@@ -30,7 +30,7 @@ def run_script(delim, threshold, ...@@ -30,7 +30,7 @@ def run_script(delim, threshold,
out_dir = os.path.abspath(f'test-out/{test_name}') out_dir = os.path.abspath(f'test-out/{test_name}')
create_dir_rec_if_needed(out_dir) create_dir_rec_if_needed(out_dir)
args = ['python3', 'swf2userSessions/swf2sessions.py', f'--{delim}', str(threshold), args = ['swf2userSessions', f'--{delim}', str(threshold),
'-q', input_swf, out_dir] '-q', input_swf, out_dir]
if graph: if graph:
args.append("--graph") args.append("--graph")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment