Giter Site home page Giter Site logo

We need tests about whateverable HOT 4 CLOSED

raku avatar raku commented on July 3, 2024
We need tests

from whateverable.

Comments (4)

lembark avatar lembark commented on July 3, 2024

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.

AlexDaniel avatar AlexDaniel commented on July 3, 2024

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

  1. spawn an IRC server (Test::IRC::Server?) and test the whole bot by sending the commands from another IRC::Client
  2. 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.

AlexDaniel avatar AlexDaniel commented on July 3, 2024

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.

MasterDuke17 avatar MasterDuke17 commented on July 3, 2024

Closed with 4a05be6.

from whateverable.

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.