Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Improve Runestone testing - #1148

Merged
bnmnetp merged 5 commits into
RunestoneInteractive:masterfrom
bjones1:test_improvements_1
Mar 17, 2021
Merged

Improve Runestone testing#1148
bnmnetp merged 5 commits into
RunestoneInteractive:masterfrom
bjones1:test_improvements_1

Conversation

@bjones1

@bjones1bjones1 commented Mar 15, 2021

Copy link
Copy Markdown
Contributor

This improves timed exam unit tests, as a first step toward #1146. Next up will be selectquestion testing.

Add: more testing for a timed exam.
Fix: Improve unit testing approach:
Run webpack before each test
Properly close the Selenium driver
Provide a wait_until_ready method

Fix: Improve unit testing approach:
Run webpack before each test
Properly close the Selenium driver
Provide a wait_until_ready method
@bjones1

Copy link
Copy Markdown
ContributorAuthor

@bnmnetp, it looks like the unit tests are confused here too -- Py 3.7 passes, Python 3.8 doesn't. We're definitely in need of some unit test improvements.

@bjones1

Copy link
Copy Markdown
ContributorAuthor

@bjones1

Copy link
Copy Markdown
ContributorAuthor

Yikes. Apparently, a delay makes the tests pass...

...which is why we need a better test methodology. The new code allows components to indicate when they're ready. I didn't include it in this fix, since a shortanswer question is used by selectquestion and is a big, potentially breaking change. When this is merged, I'll submit a PR to update the poll component to use this "smart" approach. I chose pool because the poll component is a low-risk place to start.

Comment thread.travis.yml
- "python -m pip install -U pip"
- "pip install -e ."
- "pip install -U -r requirements-dev.txt"
- "npm run build"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This file could be deleted since I moved us over to using github actions.

@bnmnetp
bnmnetp merged commit a10452e into RunestoneInteractive:masterMar 17, 2021
@bjones1
bjones1 deleted the test_improvements_1 branch March 17, 2021 21:33
@bjones1bjones1 mentioned this pull request Mar 18, 2021
This was referenced Apr 21, 2021
Sign up for freeto 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.

2 participants

@bjones1@bnmnetp