Comments (5)
@ecmendenhall thanks for the pull request and working on tests! This is great, and I'd love if you'd want to work on splinter/selenium tests too.
I tried running the test with python test/onionshare_test.py
but there was no output, and I even made one fail and there was still no output. I decided to merge it in anyway since it's not harming anything sitting there.
You mentioned in #30 that you'd need to break a lot of the functionality out of main()
into separate functions to test further, but I've actually already done a lot of this in the gui
different branch. In order to make it easier to test, I've just merged gui
into master
. The GUI isn't done yet, but it does indeed work.
from onionshare.
Thanks, I'll check out the updated master tomorrow. Excited for a GUI!
I used nose as the testrunner, which does some magic to find and run tests. If you pip install nose
and then run nosetests
in the project root it should find and run them. If you don't want to add a development dependency, the built in unittest
module would probably be fine.
from onionshare.
I don't mind adding dev dependencies for tests. Do you want to add instructions for running the tests to README.md
and include it in your next pull request?
from onionshare.
Good idea. I added a section on running tests in #40.
from onionshare.
Since there are now some tests, this issue should be closed and replaced with smaller issues targeting specific tests.
Also, the tests are currently failing on master. This should never happen. I recommend using CI, as well as Git push hooks, to prevent this from happening in the future.
from onionshare.
Related Issues (20)
- Add option for automatically sharing a website HOT 1
- Allow translating the web interfaces? HOT 4
- new tag? HOT 2
- fix flatpak syncing HOT 1
- Creating Persistent Receive Files from CLI Only HOT 3
- Flask
- test
- Allow Upload and Download using Share Mode HOT 1
- python-stem is obsolete HOT 2
- Doesn't load fonts from html file HOT 2
- Unable to generate QR Codes
- Improve flatpak go and python module generators
- Qt6 depdenency & backport to Debian stable / Tails HOT 1
- Improvements to the receive mode web frontend
- v2.6.1: onionshare depends on onionshare_cli but also conflicts with onionshare_cli
- Fix deprecated Enums in new PySide6 versions
- Move description to long_description in setup.py
- Make Japanese as available language on documentation HOT 1
- Flatpak version: "No module named 'PySide2" HOT 8
- Crash after Onion share quit, while it was sharing 3 files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onionshare.