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

Run functional tests for REST API during a build #506

Merged
merged 8 commits into from
Jul 15, 2019

Conversation

EvgenyShashkin
Copy link
Contributor

No description provided.

.travis.yml Outdated
@@ -12,5 +12,6 @@ before_script:
- docker-compose -f docker-compose.yml -f docker-compose.ci.yml up --build -d

script:
- docker exec -it cvat /bin/bash -c 'tests/node_modules/.bin/karma start tests/karma.conf.js'
- docker exec -it cvat /bin/bash -c 'python3 manage.py test --settings cvat.settings.testing cvat/apps/engine &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EvgenyShashkin , do we really need --settings cvat.settings.testing here? I see that below we specify DJANGO_CONFIGURATION. I hope it should be enough. Also it is not good to close an issue before a PR which fixes it is merged. You can specify in description of PR Resolved #... and it will be closed automatically after the PR is merged. Could you please follow the approach?

Another problem I don't see that travis was run for the patch. Could you please explain why?

@EvgenyShashkin
Copy link
Contributor Author

Resolved #420

.travis.yml Outdated
@@ -12,5 +12,6 @@ before_script:
- docker-compose -f docker-compose.yml -f docker-compose.ci.yml up --build -d

script:
- docker exec -it cvat /bin/bash -c 'tests/node_modules/.bin/karma start tests/karma.conf.js'
- docker exec -it cvat /bin/bash -c 'python3 manage.py test --settings cvat.settings.testing cvat/apps/engine && tests/node_modules/.bin/karma start tests/karma.conf.js'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EvgenyShashkin , do we need --settings cvat.settings.testing here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nmanovic , yes, because file testing.py contains functions for working with fakeredis

@nmanovic
Copy link
Contributor

@EvgenyShashkin , please read my comments and fix them. Also please add a message to CHANGELOG.md file that we added running tests. If a test is fail what will we have (just post an example of messages from logs)?

@nmanovic
Copy link
Contributor

nmanovic commented Jun 28, 2019

@EvgenyShashkin , OK. I add WIP prefix for the request. I need more information to accept it. Not all questions in the PR were resolved. Let me know if you need more information. Don't hesitate to write your questions into itlab Gitter

@nmanovic nmanovic changed the title Run functional tests for REST API during a build [WIP] Run functional tests for REST API during a build Jun 28, 2019
@nmanovic nmanovic changed the title [WIP] Run functional tests for REST API during a build Run functional tests for REST API during a build Jul 15, 2019
@nmanovic nmanovic merged commit 8daf715 into cvat-ai:develop Jul 15, 2019
MultifokalHirn added a commit to signatrix/cvat that referenced this pull request Jul 22, 2019
* develop: (112 commits)
  fixed attribute processing in auto_annotation (cvat-ai#577)
  CVAT.js API Tests (cvat-ai#578)
  Fixed exception in attribute annotation mode (cvat-ai#571)
  CVAT.js API methods were implemented (cvat-ai#572)
  Dashboard components basic styles (cvat-ai#574)
  Handle invalid json labelmap file case correctly during create/update DL model stage. (cvat-ai#573)
  Upgrade Numpy to avoid Arbitrary Code Execution. Upgrade Django to avoid MitM (cvat-ai#575)
  Run functional tests for REST API during a build (cvat-ai#506)
  CVAT.js other implemented API methods and bug fixes (cvat-ai#569)
  CVAT.js implemented API methods and bug fixes (cvat-ai#564)
  added in handeling for openvino 2019 (cvat-ai#545)
  added in command line auto annotation runner (cvat-ai#563)
  Fixed PDF extractor syntax error (cvat-ai#565)
  Update README.md
  added in pdf extractor (cvat-ai#557)
  Basic dashboard components (cvat-ai#562)
  Saving of annotations on the server (cvat-ai#561)
  Code was devided by files (cvat-ai#558)
  CVAT.js: Save and delete for shapes/tracks/tags (cvat-ai#555)
  Fixed '=' to '==' for numpy in requirments (cvat-ai#556)
  ...

# Conflicts:
#	.gitignore
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

Successfully merging this pull request may close these issues.

2 participants