Comments (4)
Why? Because I am getting tired of testing everything manually.
Coming into this quite late, but I could try and write some
tests if I knew more about what you were testing.
Q: What is it that you are testing manually?
enjoi
Steven Lembark 3646 Flora Pl
Workhorse Computing St Louis, MO 63110
[email protected] +1 888 359 3508
from whateverable.
@lembark thank you for your interest!
README has a nice list of examples. It is slightly outdated, newer versions of the bots tend to do a bit more than that (e.g. provide a link to the log), but it is still a very good list of various behaviors.
Basically, every time we do significant changes I copy-paste these examples to see if everything is alright. Usually something is broken :)
I see two ways to have tests:
- spawn an IRC server (
Test::IRC::Server
?) and test the whole bot by sending the commands from anotherIRC::Client
- or just write plain unit tests. Maybe focus on Whateverable.pm6 first.
I tend to prefer the former, as it easily gives high coverage with only a few tests, but feel free to do whatever you like. As long as we don't have to test stuff manually it is alright :)
Currently there are also Perlย 5 bots in this repo. Forget about them, we will switch to 6lang bots soon.
Feel free to join #whateverable
on freenode to discuss details.
from whateverable.
Done! See fa3eb4e and e3a9fc3.
I did not write any tests for Benchable, hoping that @MasterDuke17 will do that (he knows Benchable better).
from whateverable.
Closed with 4a05be6.
from whateverable.
Related Issues (20)
- Automatic tell shouldn't work for bridged users HOT 1
- Tellable should format CTCP ACTION HOT 1
- How old are you?
- tellable and perhaps other bots should support s/foo/bar/ messages
- tellable and perhaps other bots should support ^^ messages
- Rakudo 2019.10 is now relocatable, use that to avoid locks HOT 1
- Tellable commands should count as messages
- Test ticket (please ignore)
- Can't install because of `Sake` dep instead of `sake` HOT 3
- Bot "thanks" regex is too permissive HOT 2
- Type check failed in push to Buf; expected uint8 but got Str HOT 1
- Tellable should respond to private messages HOT 4
- nick recognition and normalization is wrong HOT 1
- Refactoring, cleanup, tests (2020) HOT 1
- Automatically detect wrong bisection results due to flapping code HOT 1
- Tellable doesn't say anything when it intentionally discards messages
- GLOBAL symbol failure on install HOT 7
- fails on install with "...Redeclaration of symbol 'Message'...." HOT 4
- The state of Whateverable (2023 server migration) HOT 6
- Replace lrzip with zstd 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 whateverable.