Giter VIP home page Giter VIP logo

Comments (5)

micahflee avatar micahflee commented on May 27, 2024

@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.

ecmendenhall avatar ecmendenhall commented on May 27, 2024

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.

micahflee avatar micahflee commented on May 27, 2024

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.

ecmendenhall avatar ecmendenhall commented on May 27, 2024

Good idea. I added a section on running tests in #40.

from onionshare.

garrettr avatar garrettr commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.