You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add steps for ensuring pre-commit hooks are installed (#416)
* Add steps for ensuring pre-commit hooks are installed
* Add .idea folder to gitignore
* Add steps for running tests and linters/formatters
* Retain trace logs on failure
Allows us to better debug why the tests just occasionally fail
* Add tracing to playwright tests
* Run tracing action regardless of test status
* Fix folder where test results will upload
* Use proper tests dir
* Actually turn on tracing and upload the resulting failed results
* Use jekyll serve detach command
I somehow missed that the command existed
* Add macos, jetbranins and vscode to gitignore
* Remove sleep fixture
Playwright has a built-in "slowmo" feature that would be easiest to use.
https://playwright.dev/python/docs/test-runners#cli-arguments
* Use standard python comparison operator
The `to_equal` doesn't seem to exist in playwright for python. There is a NodeJS equivalent, but there is no supported GenericAssertion equivalent for python
https://playwright.dev/docs/api/class-genericassertions
* Add explanation to test assertion
* Fix linting issues
* Pull upstream changes
* Use white theme for images
* Remake changes in CONTRIBUTING file
* Remove unneeded test-results folder
* Revert .gitignore
* Revert to base readme
* Use white theme to stay consistent
* Increase GH action job to 30 mins
* Run linter to fix linting errors
- After installing the dependencies, its time to run the application. We do this by running the command `bundle exec jekyll serve` or run the default **Build Task** <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>B</kbd>:
61
+
- Afterwards, run the command `pip install -r requirements-dev.txt` to install the python dev dependencies.
- After installing the dependencies, its time to run the application. We do this by running the command `bundle exec jekyll serve --detach` or run the default **Build Task** <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>B</kbd>:
@@ -70,6 +78,32 @@ Follow these steps and note these guidelines to begin contributing:
70
78
71
79

72
80
73
-
- Test your changes (create new tests as needed)
81
+
### Testing Changes (create new tests as needed)
82
+
83
+
- To run the test suites for the codebase
84
+
85
+
- Ensure the site is running locally with `bundle exec jekyll serve --detach`. This will run the server in the background, and any content changes will immediately reflect on the site.
- If you need to restart the server, you can run `pkill -f jekyll` to stop the server and then run `bundle exec jekyll serve --detach` to start the server again.
90
+
91
+
- Run all tests in the test-suite with the command `python3 -m pytest`:
- Once you’ve committed and pushed all of your changes to GitHub, go to the page for your fork on GitHub, select your development branch, and click the pull request button. Please ensure that you compare your feature branch to the desired branch of the repo you are supposed to make a PR to. If you need to make any adjustments to your pull request, just push the updates to GitHub. Your pull request will automatically track the changes in your development branch and update it. 🥳
0 commit comments