Comments (5)
Keen on giving a hand where I can. I've a little experience in Python but not in unit testing.
What kind of tests have you got in mind?
from dotaupdatesbot.
I would also be happy to help up and brush up on my unit testing knowledge! I'm also quite new but this sounds manageable and @questionmarcus and me could write different tests? Happy to discuss here.
from dotaupdatesbot.
At the expense of this being a silly newbie question: Once we have everything installed, set up, tokens set up, own bot created etc and the telegram bot AnnouncerDude set up - in order to write the tests, what are we actually supposed to run? (I've put the tokens into the settings.py and changed the name as well.)
from dotaupdatesbot.
Have you decided what you'd like to use for tests? Unittest / pytest / something else?
from dotaupdatesbot.
@mvi-x I was thinking unit tests to begin with but pytest looks interesting. The end goal would be to have a full start-to-end test scenario since the functionality is not that extensive, including testing of commands and of the automated updates (probably by deleting the latest entry in the json files).
Generally, the point is to fully automate pull requests, hopefully.
@questionmarcus & @alaskaa I guess you could start by writing some unit tests for the updater.py functions. As simple as they may be, it would be a solid start.
@alaskaa the links that I have included are a good start for your question (no question is silly btw) so I suggest giving those a look. Also, pytest that @mvi-x mentioned looks nice, I have never used it though. I probably should have set up a base for you guys, sorry. I'll try doing that next weekend if none has pushed anything yet
from dotaupdatesbot.
Related Issues (20)
- Remove invalid subscribers HOT 3
- Fix commands not working HOT 8
- Add /help HOT 3
- Add latest patch analysis HOT 8
- Improve /dotanews display HOT 3
- Improve /match usability HOT 3
- Add a GitHub pages page HOT 7
- Add /info HOT 2
- Improve /dotanews display HOT 3
- Fix /dotanews special character encoding
- Crash in updater.py HOT 4
- Improve reddit post display HOT 4
- Crash in main.py HOT 2
- Create required .json files on startup HOT 7
- Add option to wait for patch analysis HOT 1
- Updater memory issues
- Connect to a DynamoDB database on AWS (Option #1) HOT 1
- Provision a MongoDB cluster with Terraform (Option #2) HOT 3
- Filter out Artifact announcements HOT 2
- Add updates feed from blog.dota2.com
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 dotaupdatesbot.