Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Restructure test files #253

Merged
merged 3 commits into from
May 29, 2019

Conversation

roschaefer
Copy link
Contributor

See my commit messages for detailed explanation. As a summary, I don't see a point in using a glob pattern in package.json when the documentation of ava clearly outlines the default pattern, see here. Aside that, I added one more script to package.json which makes at least my life easier regarding #252.

@michaeldgraham according to `git blame` you wrote most of the "tck"
tests. I have a hard time what "tck" actually means. Could you explain?
Maybe: "Test Compatability Kit"?

I find the name confusing. Could we
* either use the unabbreviated name or
* use another more descriptive name?
@roschaefer roschaefer force-pushed the restructure_test_files branch from eaaecea to 467cf17 Compare May 22, 2019 16:30
@codecov-io
Copy link

codecov-io commented May 22, 2019

Codecov Report

Merging #253 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #253   +/-   ##
=======================================
  Coverage   94.47%   94.47%           
=======================================
  Files           4        4           
  Lines         326      326           
=======================================
  Hits          308      308           
  Misses         18       18

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7b44e18...2ed8ea3. Read the comment docs.

With this commit you can run

```
npm run test-isolated
```

over and over again and the tests should pass. This does not fix the
issue mentioned above but it makes it less painful. At least I can make
my changes and run all tests exluding those that are not isolated. When I'm done
with my changes I can re-import the data and run all the tests, even those that
are not isolated.

This is what I did to get all the tests passing on my machine:

```
sudo rm /var/lib/neo4j/data/databases/* -r
sudo cp -rp ~/Downloads/temp/neo4j-graphql-js/recommendations.db/ /var/lib/neo4j/data/databases/graph.db
sudo systemctl restart neo4j.service
```

Very annoying.

@johnymontana @michaeldgraham do you know if there is a single command
that brings the database into a state where it was *before* running the
test case? Something that we could use in a `beforeEach` or `afterEach`?

See: neo4j-graphql#252 (comment)
@roschaefer roschaefer force-pushed the restructure_test_files branch from 9995597 to 2ed8ea3 Compare May 23, 2019 11:38
@johnymontana johnymontana merged commit 2ed8ea3 into neo4j-graphql:master May 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants