spaCy/website/usage
Ines Montani 75f3234404
💫 Refactor test suite (#2568)
## Description

Related issues: #2379 (should be fixed by separating model tests)

* **total execution time down from > 300 seconds to under 60 seconds** 🎉
* removed all model-specific tests that could only really be run manually anyway – those will now live in a separate test suite in the [`spacy-models`](https://github.com/explosion/spacy-models) repository and are already integrated into our new model training infrastructure
* changed all relative imports to absolute imports to prepare for moving the test suite from `/spacy/tests` to `/tests` (it'll now always test against the installed version)
* merged old regression tests into collections, e.g. `test_issue1001-1500.py` (about 90% of the regression tests are very short anyways)
* tidied up and rewrote existing tests wherever possible

### Todo

- [ ] move tests to `/tests` and adjust CI commands accordingly
- [x] move model test suite from internal repo to `spacy-models`
- [x] ~~investigate why `pipeline/test_textcat.py` is flakey~~
- [x] review old regression tests (leftover files) and see if they can be merged, simplified or deleted
- [ ] update documentation on how to run tests


### Types of change
enhancement, tests

## Checklist
<!--- Before you submit the PR, go over this checklist and make sure you can
tick off all the boxes. [] -> [x] -->
- [x] I have submitted the spaCy Contributor Agreement.
- [x] I ran the tests, and all new and existing tests passed.
- [ ] My changes don't require a change to the documentation, or if they do, I've added all required information.
2018-07-24 23:38:44 +02:00
..
_adding-languages 💫 Refactor test suite (#2568) 2018-07-24 23:38:44 +02:00
_deep-learning Update usage documentation 2017-10-03 14:26:20 +02:00
_facts-figures Note CoreNLP tokenizer correction on website 2018-07-02 11:35:31 +02:00
_install Fix venv command examples (#2560) [ci skip] 2018-07-18 10:31:24 +02:00
_linguistic-features Fix HTML merger examples (see #2390) 2018-05-30 12:22:32 +02:00
_models replace janome with mecab in the documentation and the test (#2415) 2018-06-11 00:33:13 +02:00
_processing-pipelines 💫 Interactive code examples, spaCy Universe and various docs improvements (#2274) 2018-04-29 02:06:46 +02:00
_spacy-101 adding a missing apostrophe (#2436) 2018-06-11 17:47:24 +02:00
_training fix UD data file extensions (#2425) 2018-06-08 14:26:11 +02:00
_v2 💫 Interactive code examples, spaCy Universe and various docs improvements (#2274) 2018-04-29 02:06:46 +02:00
_vectors-similarity Update _custom.jade (#2372) 2018-05-26 18:17:12 +02:00
_visualizers fix wrong documentations (#2423) 2018-06-11 00:21:06 +02:00
_data.json Add docs section on sentence segmentation [ci skip] 2018-05-07 21:25:20 +02:00
_deep-learning.jade Update website for v2.0 2017-11-07 14:48:17 +01:00
adding-languages.jade Remove old link 2017-11-09 15:34:12 +01:00
examples.jade 💫 Interactive code examples, spaCy Universe and various docs improvements (#2274) 2018-04-29 02:06:46 +02:00
facts-figures.jade Update usage documentation 2017-10-03 14:26:20 +02:00
index.jade Update website 2017-11-08 01:06:30 +01:00
linguistic-features.jade Add docs section on sentence segmentation [ci skip] 2018-05-07 21:25:20 +02:00
models.jade Update v2 details 2017-11-06 21:15:36 +01:00
processing-pipelines.jade 💫 Interactive code examples, spaCy Universe and various docs improvements (#2274) 2018-04-29 02:06:46 +02:00
spacy-101.jade 💫 Interactive code examples, spaCy Universe and various docs improvements (#2274) 2018-04-29 02:06:46 +02:00
training.jade Update training docs 2017-11-07 01:06:31 +01:00
v2.jade Get docs ready for v2.0.0 2017-11-07 12:00:43 +01:00
vectors-similarity.jade 💫 Interactive code examples, spaCy Universe and various docs improvements (#2274) 2018-04-29 02:06:46 +02:00
visualizers.jade Update visualizers docs and add submenu 2017-10-03 19:40:39 +02:00