Skip to content

Commit 373a904

Browse files
committed
Make ./specifications/ the default test suite path
1 parent 95462c3 commit 373a904

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

README.rst

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,17 @@ If you have cloned the repository without the submodules, you can initialize the
208208

209209
You can also avoid using git submodules by manually cloning
210210
the ``json-ld-api``, ``json-ld-framing``, and ``normalization`` repositories
211-
hosted on GitHub:
211+
hosted on GitHub using the following commands:
212212

213-
- https://github.com/w3c/json-ld-api
214-
- https://github.com/w3c/json-ld-framing
215-
- https://github.com/json-ld/normalization
213+
.. code-block:: bash
214+
215+
git clone https://github.com/w3c/json-ld-api ./specifications/json-ld-api
216+
git clone https://github.com/w3c/json-ld-framing ./specifications/json-ld-framing
217+
git clone https://github.com/json-ld/normalization ./specifications/normalization
218+
219+
Note that you can clone these repositories into any location you wish; however,
220+
if you do not clone them into the default ``specifications/`` folder, you will
221+
need to provide the paths to the test runner as arguments when running the tests, as explained below
216222

217223
## Running the tests
218224

@@ -223,7 +229,8 @@ source directory, then all the tests can be run with the following:
223229
224230
python tests/runtests.py
225231
226-
If you want to test individual manifest ``.jsonld`` files or directories
232+
If you wish to store the test suites in a different location than the default
233+
``specifications/`` folder, or you want to test individual manifest ``.jsonld`` files or directories
227234
containing a ``manifest.jsonld``, then you can supply these files or
228235
directories as arguments:
229236

tests/runtests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ def main(self):
9797
# default to find known sibling test dirs
9898
test_targets = []
9999
sibling_dirs = [
100-
'../json-ld-api/tests/',
101-
'../json-ld-framing/tests/',
102-
'../normalization/tests/',
100+
'./specifications/json-ld-api/tests/',
101+
'./specifications/json-ld-framing/tests/',
102+
'./specifications/normalization/tests/',
103103
]
104104
for dir in sibling_dirs:
105105
if os.path.exists(dir):

0 commit comments

Comments
 (0)