Comments (14)
Some auto testing providers I know of:
The project needs to be integrated with them.
from pyjudge.
@kirtibajaj I guess as you are managing this product, so it should be done by you.
from pyjudge.
do we still need it?
i can work on it.
from pyjudge.
from pyjudge.
ok then, I am on it. do I need to keep something in mind for the approach ? as i don't have any experience with travis or circle, just little bit of unit tests.
from pyjudge.
For now I think simply testing if the server runs is enough. Later on as need increases we can improve testing standards.
from pyjudge.
that will catch all syntax errors and so on.
from pyjudge.
while writing the tests i faced a error, i tried google too but didn't understand it. else it test for other two functions in server.py
are running OK
.
def test_file_upload(self):
#assert app.post('/check/1').status_code == 200
print(app.post('/check/1').status_code)
and this give me this error.
ERROR: test_file_upload (test_pyjudge.TestPyJudge)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shivank98/Desktop/PyJudge/PyJudge/test_pyjudge.py", line 16, in test_file_upload
print(app.post('/check/1').status_code)
File "/home/shivank98/anaconda3/lib/python3.7/site-packages/webtest/app.py", line 382, in post
content_type=content_type)
File "/home/shivank98/anaconda3/lib/python3.7/site-packages/webtest/app.py", line 758, in _gen_request
expect_errors=expect_errors)
File "/home/shivank98/anaconda3/lib/python3.7/site-packages/webtest/app.py", line 654, in do_request
self._check_status(status, res)
File "/home/shivank98/anaconda3/lib/python3.7/site-packages/webtest/app.py", line 686, in _check_status
res)
webtest.app.AppError: Bad response: 500 Internal Server Error (not 200 OK or 3xx redirect for http://localhost/check/1)
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 500 Internal Server Error</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 500 Internal Server Error</h1>
<p>Sorry, the requested URL <tt>'http://localhost:80/check/1'</tt>
caused an error:</p>
<pre>Internal Server Error</pre>
</body>
</html>
from pyjudge.
can we please stop having code in comments. Just submit a PR and we can discuss things there.
from pyjudge.
sure sure, my bad
from pyjudge.
@theSage21 i am back. is this issue still on ?
or if i can remember you added tests yourself?
from pyjudge.
This is still on. I haven't written any code I can remember for this
from pyjudge.
Hey @theSage21, I think it would be better to use pytest
as our testing framework. What do you think?
from pyjudge.
#68 is already doing that I think
from pyjudge.
Related Issues (20)
- Database HOT 1
- Contest timings HOT 2
- Home page HOT 5
- Multiple contests
- Multiple contest UI design
- Move pre-commit and black to dev dependencies
- Pip installable project HOT 11
- 404 handler HOT 2
- Proper question statement and support HOT 5
- Session support
- Use sqlite as a database
- Interface to add questions via website HOT 4
- Raise error in proper places HOT 5
- Use a more common template system HOT 5
- Continuous testing needs to be added
- User stats/ profile HOT 4
- problem status in contest
- Reinstall black HOT 1
- Code Documentaion HOT 1
- Install pytest in pipenv HOT 2
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 pyjudge.