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

feat: add acceptance tests #175

Merged
merged 36 commits into from
Jul 16, 2021
Merged

feat: add acceptance tests #175

merged 36 commits into from
Jul 16, 2021

Conversation

olevski
Copy link
Member

@olevski olevski commented Jul 12, 2021

This adds acceptance tests with cypress.

So far the tests only check that:

  • the top bar in the jupyterlab ui is present - i.e. the one that says File, Edit, etc
  • the buttons that allow you to start a terminal or a python terminal are there
  • that one can click the button to start a shell

Other checks can be easily added - I did this just to test.

In addition we should add tests for the vnc image and for rstudio. I will reach out to Gavin about this.

@olevski olevski requested a review from rokroskar July 12, 2021 15:14
@olevski olevski changed the title feat: add acceptance tests tests feat: add acceptance tests Jul 12, 2021
@olevski
Copy link
Member Author

olevski commented Jul 12, 2021

The actions that build and push the images to renkus dockerhub I cancelled on purpose. I did not change those at all.

Copy link
Member

@rokroskar rokroskar left a comment

Choose a reason for hiding this comment

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

This is great @olevski! Just a few comments to clean things up here and there. I'm also wondering if it will be possible to enter commands in the terminal with this test setup?

tests/cypress/support/commands.js Outdated Show resolved Hide resolved
.github/workflows/acceptance_tests.yml Outdated Show resolved Hide resolved
.github/workflows/acceptance_tests.yml Show resolved Hide resolved
.github/workflows/acceptance_tests.yml Outdated Show resolved Hide resolved
docker/generic/Dockerfile Outdated Show resolved Hide resolved
docker/generic/Dockerfile Outdated Show resolved Hide resolved
docker/r/Dockerfile Outdated Show resolved Hide resolved
tests/README.md Show resolved Hide resolved
tests/cypress/integration/test.spec.js Outdated Show resolved Hide resolved
@olevski olevski requested a review from rokroskar July 15, 2021 14:49
path: /tmp
- name: Load Base Image in Docker
run: |
docker load --input /tmp/py.tar
Copy link
Member

Choose a reason for hiding this comment

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

this would never have occurred to me 👍

Copy link
Member

@rokroskar rokroskar left a comment

Choose a reason for hiding this comment

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

This is a long-awaited improvement for this repo - thanks!! 🚀

@olevski olevski merged commit add75b1 into master Jul 16, 2021
@olevski olevski deleted the feat-add-tests branch July 16, 2021 07:55
TaoSunVoyage pushed a commit that referenced this pull request Jul 22, 2021
* feat: add acceptance tests with cypress/mocha
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