Coder Social home page Coder Social logo

Add unit tests about hackide HOT 14 OPEN

sahildua2305 avatar sahildua2305 commented on August 31, 2024
Add unit tests

from hackide.

Comments (14)

sahildua2305 avatar sahildua2305 commented on August 31, 2024 1

I'm not sure @mananpal1997

Probably what I wanted is to write tests to ensure quality of this project not for validation of HackerEarth's API validation. We should have tests in this project so that we can make sure new contributions aren't breaking anything. I'd encourage you to research on this a bit with @yemarnevets regarding what will be the best way to implement this.

from hackide.

yemarnevets avatar yemarnevets commented on August 31, 2024

Hi sahidula, What is an endpoint in this context? I am looking to get involved with open source projects but I am still quite new. I am very familiar with Git, so version control shouldn't be an issue. Can you please point me in the right direction for getting started with adding unittests for this project? Thanks.

from hackide.

mananpal1997 avatar mananpal1997 commented on August 31, 2024

@yemarnevets Just check for 2xx, 4xx and 5xx response, if any, from the HackerEarth API for some sample input.
@sahildua2305 Am I right?

from hackide.

sahildua2305 avatar sahildua2305 commented on August 31, 2024

@mananpal1997 @yemarnevets Any update on this?

from hackide.

aboglioli avatar aboglioli commented on August 31, 2024

If a make some time, I will collaborate with unit testing 😀

from hackide.

sahildua2305 avatar sahildua2305 commented on August 31, 2024

@aboglioli That'd be great! Let me know if you need help

from hackide.

cnguy avatar cnguy commented on August 31, 2024

@sahildua2305 Hello, can I give this a try?

from hackide.

sahildua2305 avatar sahildua2305 commented on August 31, 2024

@ChauTNguyen Sure 🙂

from hackide.

cnguy avatar cnguy commented on August 31, 2024

@sahildua2305

https://gist.github.com/ChauTNguyen/13ebafa8ea4f450ce40575bca3f78034

Hi, I'm working on it. However, I wanted to know if I'm starting it out correctly/heading in the right direction, so I wrote just a few basic unit tests.

dependencies: selenium 3.0.2

I started out by covering:

  • loading the site, and compiling to see if the UI and compiling the default works properly (ex: Compile Status: OK)
  • loading the site, and giving failing input to see if the UI works properly (ex: Compile Status: --)
  • turning on the checkbox should add the custom input display, which allows the user to send in custom input. user dumps some input in, and after running the code, the custom input should then be re-displayed within stdin.
  • user does a simple hello world program and runs the program to get a link to the saved code. user then goes to that link (and I tested if the input stays the same) and runs the code, and the output should contain the hello world

I used sleep commands for the short compiles and refreshes (to give DOM time to render).

from hackide.

sahildua2305 avatar sahildua2305 commented on August 31, 2024

@ChauTNguyen looks good. Can you please create a PR for the same?

from hackide.

PrathameshPalaskar avatar PrathameshPalaskar commented on August 31, 2024

Hello, I am new to open source. Can I contribute to issue #44 ?

from hackide.

sahildua2305 avatar sahildua2305 commented on August 31, 2024

@PrathameshPalaskar welcome. Thanks for showing interest to contribute to this project.

As you can see there's already a pull request for this issue. Do you have any extra ideas about how you would want to do this?

from hackide.

sahildua2305 avatar sahildua2305 commented on August 31, 2024

Re-opening this because the PR #44 was never submitted and this is likely up for grabs.

from hackide.

arvind2221994 avatar arvind2221994 commented on August 31, 2024

Is this issue still open? I would like to contribute with some unit tests.

from hackide.

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.