question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create new unit tests for Evennia

See original GitHub issue

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

  1. Go to the coveralls page for Evennia
  2. 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
  3. 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.
  4. 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.
  5. If no tests.pyfile 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 other tests.py in the Evennia repo for help.
  6. Here is help on django unit testing should you need it.
  7. 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!

<bountysource-plugin>

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:19 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
Griatchcommented, Oct 2, 2017

@Keda87, @vaibhavsingh97 That’s great! I updated the issue with some more info. 😃

1reaction
Griatchcommented, Oct 3, 2022

@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 ☹️ )

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found