Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic integration tests and a test runner #40

Closed
hjwilli opened this issue Jun 8, 2018 · 4 comments
Closed

Basic integration tests and a test runner #40

hjwilli opened this issue Jun 8, 2018 · 4 comments
Assignees

Comments

@hjwilli
Copy link
Collaborator

hjwilli commented Jun 8, 2018

Currently there are some python unit tests written for the ai recommender and machine.

Create some basic integration tests and some sort of test runner that can run the integration tests and existing unit tests from the command line.

@hjwilli hjwilli self-assigned this Jun 8, 2018
hjwilli added a commit that referenced this issue Jun 12, 2018
docker-compose-int-test.yml will spin up lab, machine, dbmongo, and an
integration container that will run a suite of Jest tests.
The example 'sum' test passes, working on labApi tests

References #40
hjwilli added a commit that referenced this issue Jun 13, 2018
Test container waits for lab to be responsive before initiating tests

References #40
@hjwilli
Copy link
Collaborator Author

hjwilli commented Jun 13, 2018

First pass at integration tests and a docker test integration test runner.

To run the integration tests, from the root app directory run:
docker-compose -p integration-tests up --abort-on-container-exit

This will spin up lab, machine, and dbmongo containers as well as an integration test container that will wait till lab is responsive, run the tests and exit.

hjwilli added a commit that referenced this issue Jun 14, 2018
hjwilli added a commit that referenced this issue Jun 19, 2018
hjwilli added a commit that referenced this issue Jun 20, 2018
@hjwilli
Copy link
Collaborator Author

hjwilli commented Jun 20, 2018

Hi @weixuanfu, I updated main readme with instructions on running the int tests.

At this point, if the node packages have been fully installed in lab and machine and the database has been fully loaded, when I run the test suite 4/5 tests should pass. The test 'integration run simple experiment on adult' may fail with an error message along the line of 'no machine available'.

@weixuanfu
Copy link
Contributor

Thank you! I will test it in my environment.

hjwilli added a commit that referenced this issue Jun 20, 2018
found that dos2unix dockerfile bug when running the tests on a fresh
build

Ref #40
hjwilli added a commit that referenced this issue Jul 3, 2018
container dependencies added to docker-compose scripts
machine startup script waits for lab to be responsive
added jest int tests against machine container
jest int tests wait for both lab and machine to be up
jest int tests produce html output in ./tests/integration/resutls

References #40
References #33
hjwilli added a commit that referenced this issue Jul 6, 2018
References #40
References #46
hjwilli added a commit that referenced this issue Jul 11, 2018
hjwilli added a commit that referenced this issue Jul 11, 2018
Better error reporting in lab and machine
implemented machine get /projects
lab .env dependency cleanup

References #52, References #40
hjwilli added a commit that referenced this issue Jul 12, 2018
Updates so that all tests pass - lab test now just makes sure that a ml
algorithm starts running, doesn't check for success
Adding tests to check machine state against db state

References #40, References #52
hjwilli added a commit that referenced this issue Jul 12, 2018
working on test to compare machine server's project state to database
state

References #40, #52
hjwilli added a commit that referenced this issue Jul 12, 2018
References #40, #52
hjwilli added a commit that referenced this issue Aug 1, 2018
Test updates, move runExperiments to a different test
References #40
hjwilli added a commit that referenced this issue Aug 1, 2018
References #40
hjwilli added a commit that referenced this issue Aug 2, 2018
@hjwilli
Copy link
Collaborator Author

hjwilli commented May 14, 2019

We've got tests!

@hjwilli hjwilli closed this as completed May 14, 2019
HyunjunA pushed a commit that referenced this issue Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants