Unit testing framework in 3 lines of C code jera.com/techinfo/jtns/jt…
πŸ‘︎ 17
πŸ’¬︎
πŸ‘€︎ u/jackasstacular
πŸ“…︎ Sep 24 2020
🚨︎ report
New job out of college: workplace has no devops, no source control, no system diagrams, no code reviews, no scrum, no unit testing framework, no architectural plan

I work with a manager who does not conduct any devops, no source control, no system diagrams, no code reviews, no scrum, no unit testing framework, no architectural plan, this is my first job out of college, something does not feel right. How would I tell manager, maybe we need these things above? Thinking it may make him angry. Company has around 2000 employees, I work at a software data warehouse department.

πŸ‘︎ 32
πŸ’¬︎
πŸ‘€︎ u/GregThomas582
πŸ“…︎ Mar 08 2019
🚨︎ report
Benchmarks of C++ Unit Testing Frameworks πŸ“Š github.com/boost-experime…
πŸ‘︎ 16
πŸ’¬︎
πŸ‘€︎ u/chr15_
πŸ“…︎ Nov 18 2019
🚨︎ report
[πŸ“Š] Benchmarks of C++ Unit Testing Frameworks github.com/boost-experime…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/chr15_
πŸ“…︎ Nov 21 2019
🚨︎ report
Bash_unit – bash unit testing framework github.com/pgrange/bash_u…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/sidcool1234
πŸ“…︎ Mar 02 2021
🚨︎ report
To use AWS SAM or Serverless framework for ,unit testing, security testing with CI/CD for AWS lambda, ApIGW, stepfunctions etc...?

I am already using Terraform to provision and deploy the resources (infra +Serverless).I am thinking to split Serverless from the infra provision. And Serverless could be deployed along with TESTING via AwS codepipeline or other similar tool.

What is your feedback to use AWS SAM or Serverless framework with CI/CD ? Which is better and easily configurable.

Does SAM has good edge being aws native services ? I can see benefits of SAM for publishing serverless application in repository which can be reused and deployed (but that can be done via CI/CD) so not sure about the benefits.

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/reddit-some
πŸ“…︎ Dec 29 2020
🚨︎ report
ΞΌt - C++20 single header, a macro-free Unit Testing Framework βœ”οΈ github.com/boost-experime…
πŸ‘︎ 129
πŸ’¬︎
πŸ‘€︎ u/chr15_
πŸ“…︎ Nov 01 2019
🚨︎ report
GMS2 Unit Testing Framework Out for 2.3.0

Hello everyone! I wanted to let everyone know that the Unit Testing Framework I made for GMS2 now officially supports 2.3.0! It also now has a marketplace asset, so if you're not interested in downloading it from the github page, you can do so there.

Github: https://github.com/pmarincak/gms2-test

Marketplace: https://marketplace.yoyogames.com/assets/9280/gms2-test

I hope this is useful to you all! And let me know if you have any questions or comments!

πŸ‘︎ 15
πŸ’¬︎
πŸ‘€︎ u/nianda
πŸ“…︎ Aug 20 2020
🚨︎ report
Comparison of C++ unit testing frameworks socialcompare.com/en/comp…
πŸ‘︎ 38
πŸ’¬︎
πŸ‘€︎ u/markus_lindqvist
πŸ“…︎ Jan 16 2014
🚨︎ report
ShellSpec is a full-featured unit testing framework written in shell script (not bash) shellspec.info/
πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/ko1nksm
πŸ“…︎ Oct 05 2020
🚨︎ report
What is the real benefit of mocha or other unit testing framework?

I've always kind of hacked my code together and had the attitude like testing was for chumps. Lately I've had a change of heart and a realization that unit testing is pretty important. I see Mocha and Should in a lot of places but it's always nice not to have unnecessary deps for my package. Why not just stick with the assert lib that ships with node? What make these other frameworks so popular?

πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/tylerbrazier
πŸ“…︎ Oct 16 2014
🚨︎ report
Unit testing frameworks

I've used cmock before. Are there any frameworks out there that people are using instead? Particularly, what's your opinion on having to have separate implementation files for each function so you can mock dependencies?

πŸ‘︎ 41
πŸ’¬︎
πŸ‘€︎ u/waterproofpatch
πŸ“…︎ Oct 06 2019
🚨︎ report
Unit testing frameworks?

Anyone have a favorite? Trying to decide between a few different ones right now. Junit is winning but I wonder if folks have other thoughts.

Also, on Junit- which version is standard? 4 or 5?

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/LeonTheremin
πŸ“…︎ May 15 2020
🚨︎ report
New unit testing framework: JazSharp - Jasmine in C# github.com/Sellorio/JazSh…
πŸ‘︎ 40
πŸ’¬︎
πŸ‘€︎ u/Sellorio
πŸ“…︎ Aug 19 2019
🚨︎ report
[Phoronix] ACO Radeon Shader Back-End Adds Unit Testing Framework To Help Test Optimizations phoronix.com/scan.php?pag…
πŸ‘︎ 48
πŸ’¬︎
πŸ‘€︎ u/InvincibleBird
πŸ“…︎ Jul 30 2020
🚨︎ report
Percentage of populations tested for coronavirus. Why is UK at the bottom of the list? One of the best ways we can protect the NHS is by testing people. Knowing who has been infected and where allows the NHS to plan, and more effectively cope, with demand on intensive care units.
πŸ‘︎ 127
πŸ’¬︎
πŸ‘€︎ u/nizaravi
πŸ“…︎ Apr 19 2020
🚨︎ report
In-depth comparison of JS unit testing frameworks mo.github.io/2017/06/05/j…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/mnem0
πŸ“…︎ Jun 05 2017
🚨︎ report
doctest - The lightest feature-rich C++98/C++11 single-header testing framework for unit tests and TDD - version 1.1.0 released! Compile time of assert macros improved by 70-95%. Embedding C++ tests in your engine/gameplay code is no longer unpractical!

I released version 1.0 of doctest 4 months ago.

Today I'm happy to announce version 1.1 - which comes mainly with bugfixes and compile time improvements!

check out the /r/cpp thread for the discussion

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/onqtam
πŸ“…︎ Sep 23 2016
🚨︎ report
New unit testing framework: JazSharp - Jasmine in C# github.com/Sellorio/JazSh…
πŸ‘︎ 25
πŸ’¬︎
πŸ‘€︎ u/Sellorio
πŸ“…︎ Aug 19 2019
🚨︎ report
How I gamified unit testing my PHP framework and went from 0% unit test coverage to 93% in 30 days technex.us/2019/02/how-I-…
πŸ‘︎ 114
πŸ’¬︎
πŸ‘€︎ u/hparadiz
πŸ“…︎ Feb 18 2019
🚨︎ report
The best tools/framework for SQL unit testing?!?!?

Mention others in comments.

View Poll

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Viralflowz
πŸ“…︎ Sep 22 2020
🚨︎ report
A Unit Testing Framework In 44 Lines Of Ruby skorks.com/2011/02/a-unit…
πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/servercentric
πŸ“…︎ Feb 17 2011
🚨︎ report
GUT version 6.8.3 (Godot Unit Testing framework)

Announcing a new version of GUT. GUT is a Unit Testing framework for the Godot Game Engine available via GitHub and the Godot Asset Library. Version 6.8.3

  • Added filenames to "got" and "expected" values. For example you'll see [Node:1234](my_script.gd) now instead of just [Node:1234]
  • Text is now wrapped in the display. If you hate it let me know and I'll add a flag.
  • Various bug fixes

Links

  • https://github.com/bitwes/Gut/releases/tag/v6.8.3
  • https://godotengine.org/asset-library/asset/54
  • https://github.com/bitwes/Gut/wiki
  • https://github.com/bitwes/Gut

Tutorials:

  • https://github.com/bitwes/Gut/wiki/Tutorials
πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/bitwes
πŸ“…︎ May 13 2020
🚨︎ report
simple_test: A powerful, minimalist and easy-to-use Lua unit testing framework. github.com/EvandroLG/simp…
πŸ‘︎ 15
πŸ’¬︎
πŸ‘€︎ u/evandrolg
πŸ“…︎ Apr 17 2020
🚨︎ report
New unit testing framework: JazSharp - Jasmine in C# github.com/Sellorio/JazSh…
πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/Sellorio
πŸ“…︎ Aug 19 2019
🚨︎ report
Ansible Integration/Unit testing framework?

Coming from a puppet and powershell background, in developing modules in either I used rspec or pester to do test-driven development. The configuration tests for expected configuration were written before the actual code to perform changes, and then bundled with the module for future development. Does anyone know of exemplars of test-driven development of ansible playbooks and roles?

Writing test cases, and then confirming that the code actually set things as expected has been a huge help in development. It also has been really valuable for cases when things are done manually (outside of automation for whatever reason) to provide a standalone 'configuration checker'.

What is the ansible equivalent? I have seen a tests directory inside of some roles, but they seem generally more like smoke tests (syntax test \ run without an error) vs. being able to create test cases, apply the configuration, and finally validate the actual configuration matches the expected.

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/classyclarinetist
πŸ“…︎ Nov 06 2019
🚨︎ report
Unit testing private methods, should you make them public violating O (open/close) in SOLID or use a framework like Moq to to test the private methods via the public ones?

I'm trying to figure the best way to unit test GetHumanPlayerShot and CreateComputerShot private methods in the code sample below. They don't need to be public, so making them so would break open / closed principle in SOLID.

Whats the best way to unit test private methods? is there a way to check they are called with a unit test and check the result? I can mock out RandomLocationGenerator.Generate(0,10) as that implements an interface.

For brevity, ive omitted some code / classes in my example code

The only public method that needs to be exposed is RunGame as it returns the gameState.

Should i make methods public to make them testable or is there a better way?

public interface IBattleShipGameStateMachine
{
    GameState RunGame();
}

public class BattleShipGameStateMachine : IBattleShipGameStateMachine
{
    public BattleShipGameStateMachine(IGame game, IConsole consoleWrapper, IRandomNumberGenerator randomLocationGenerator)
    {
        this.ConsoleWrapper = consoleWrapper;
        this.Game = game;
        this.RandomLocationGenerator = randomLocationGenerator;
        this.ValidShotTester = new Regex(@"\d+,\d+", RegexOptions.Compiled);
        this.gameState = GameState.NotStarted;
    }

    private GameState gameState { get; set; }

    public GameState RunGame()
    {
        this.gameState = GameState.GameRunning;
        IPlayer playerOne = this.Game.Players.First(p => p.PlayerNumber == 1);
        IPlayer playerTwo = this.Game.Players.First(p => p.PlayerNumber == 2);
        while (!this.gameState.Equals(GameState.PlayerOneWon) && !this.gameState.Equals(GameState.PlayerTwoWon))
        {
            // human and computer take turns shooting
            Location shot = this.GetHumanPlayerShot();
            if (this.gameState.Equals(GameState.PlayerExit))
            {
                break;
            }
            // logic omitted here to check if ships hit / all ships sunk etc
            Location shot = CreateComputerShot();
        }
        return this.gameState;
    }

    // creates a location x,y. need to unit test this to ensure its a valid location
    private Location CreateComputerShot()
    {
        int x = this.RandomLocationGenerator.Generate(0, 10);
        int y = this.RandomLocationGenerator.Generate(0, 10);
        Location shot = new Location(x, y);
... keep reading on reddit ➑

πŸ‘︎ 12
πŸ’¬︎
πŸ‘€︎ u/Neophyte-
πŸ“…︎ Oct 25 2018
🚨︎ report
Effective Unit Testing for Java EE - Needle is a lightweight framework for testing Java EE components outside of the container in isolation. needle.spree.de/
πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/hwilming
πŸ“…︎ Jul 30 2012
🚨︎ report
What are current best-practices for unit testing in Kotlin (frameworks, tools, style, etc)?
πŸ‘︎ 30
πŸ’¬︎
πŸ‘€︎ u/sanity
πŸ“…︎ Oct 30 2018
🚨︎ report
Unicorn: A magical unit testing framework for C github.com/vberlier/unico…
πŸ‘︎ 29
πŸ’¬︎
πŸ‘€︎ u/fzy_
πŸ“…︎ Apr 15 2018
🚨︎ report
List of api testing tools and frameworks. Should help you while building api first platforms popularowl.com/blog/which…
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/Sauliuz
πŸ“…︎ Apr 12 2019
🚨︎ report
New unit testing framework: JazSharp - Jasmine in C# github.com/Sellorio/JazSh…
πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/Sellorio
πŸ“…︎ Aug 19 2019
🚨︎ report
Unit Testing Frameworks

TL;DR Looking for examples of unit-testing in whatever programming language you're familiar with.

I'm reading through How to Design Programs and came across this line:

> One day you will switch to another programming language; one of the first tasks will be to figure out its unit-testing framework.

The text gives a clear example of how to set up unit tests using Racket, noting that the check-expect statements can be above or below your function definitions. But when glancing at other frameworks like Python's unittest and doctest, the examples are less clear. Can anyone provide some unit-testing examples in languages other than Racket?

Bonus: how much attention do people place on their unit testing?

πŸ‘︎ 6
πŸ’¬︎
πŸ“…︎ Mar 26 2019
🚨︎ report
This is the starter kit project for node js with typescript programming. This project is with express js and mongoose frameworks to build a Rest APIs. This project structure also support with multiple API protocalls also we build the project with unit testing for end points and logic codes by supert github.com/shadowhijacker…
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/shadowHijackers
πŸ“…︎ Mar 23 2020
🚨︎ report
Speed up your C++ unit tests cycles with CMake/CTest (and the right testing framework) a4z.bitbucket.io/blog/201…
πŸ‘︎ 60
πŸ’¬︎
πŸ‘€︎ u/_a4z
πŸ“…︎ May 17 2018
🚨︎ report
How I gamified unit testing my PHP framework and went from 0% unit test coverage to 93% in 30 days technex.us/2019/02/how-I-…
πŸ‘︎ 17
πŸ’¬︎
πŸ‘€︎ u/maht0rz
πŸ“…︎ Feb 19 2019
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.