Create new unit tests for Evennia
See original GitHub issueBrief summary of issue / Description of requested feature:
This is an issue originally started under hacktoberfest but extended beyond that. The issue is for expanding Evennia’s unit test coverage. This is also a great way to learn some of Evennia’s systems under the hood.
Steps to reproduce the issue / Reasons for adding feature:
- Go to the coveralls page for Evennia
- Find an Evennia module under
evennia/
that lacks unit test coverage. a. Exception:/evennia/game_template/*
is not much point to unit test b. Exception: Any/migrations
sub directories should not have unit tests - If you are new to Evennia, please see the Getting Started instructions on how to set up Evennia locally - you can just create an empty game folder.
- See Evennia’s How to unit test Evennia page for more info. Tests of this issue will run by executing
evennia test evennia
from the game dir. - If no
tests.py
file yet exists in the sub-package in question, add it and then add your test to it. It will automatically be picked up by the test runner. See othertests.py
in the Evennia repo for help. - Here is help on django unit testing should you need it.
- If you are unsure about how GIT/PRs etc work, check out the Forking Evennia page.
Expected result of feature
We are currently at ~53%~ 64% unit test coverage, why not expand that?
Extra information, such as Evennia revision/repo/branch, operating system and ideas for how to solve / implement:
This is against master
branch. Ask in forum or chat (#evennia on irc.freenode.net) if you have any questions on how to test a particular system - we are happy to help!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 6 years ago
- Comments:19 (12 by maintainers)
Top Results From Across the Web
Unit Testing — Evennia 0.9.5 documentation
This is a program that gathers all available tests all over the Evennia source code (called test suites) and runs them all in...
Read more >I want to help - where can I chip in? - Google Groups
Evennia's unit test framework currently covers all default commands but only a few of the functions in the core. It's critical that a...
Read more >Create unit test method stubs - Visual Studio - Microsoft Learn
Learn how to use the Create Unit Tests command, which allows easy configuration of a test project, the test class, and the test...
Read more >IRC Discussion Summary 31/10/16 – 06/11/16: Unit Testing, Rogue ...
Xlaits: Token new guy. grungies1138: Creating the power of the force in ... For more information on Unit Testing in Evennia check the...
Read more >evennia/evennia | Build #3568518797 | Coveralls - Test Coverage ...
This build has 0.0% test coverage and 0.0 hits per line. ... Update codeql action to latest, Griatch, push, 28 Nov 2022 10:54AM...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Keda87, @vaibhavsingh97 That’s great! I updated the issue with some more info. 😃
@selberhad Oh, haven’t looked at the detailed coverage in the while. I updated the root now, so you should be able to see the source code. Thanks for the heads up!
(The
develop
branch coverage on coveralls.io is also weird. If you run locally, the coverage for that branch is 66%, but on coveralls.io it reports 26% for develop branch. It just dropped some months ago. Not sure what’s going on there ☹️ )