I, Chris, try to add a system test for the todo bug fix in episode 5 but run into some issues. I find out I stupidly hard coded the todo file name when he first added the ability to generate a todo file in Standard. When recording this video I think that is why his system test doesn’t work but upon re-watching this video I have my doubts. Only time will tell if my doubts are correct or not.
[Read More]NConstraints v1.1.1 Released Now Targets .NET Standard 2.0
I’m happy to announce that NConstraints v1.1.1 has been released! This release updates the NuGet package from .NET Standard 1.6 to 2.0 and should work with all versions of NUnit 3.
You can install NConstraints via the dotnet command line:
dotnet add package SaturdayMP.NConstraints --version 1.1.1
Other install options can be found here.
NConstraints currently only has one constraint called EquivalentPropertyWiseTo. It checks if all the property values on two objects are the same. Instead of writting:
[Test]
public void TestObjectsTheSame()
{
var expected = new ExpectedClass() { ValueOne = 1, ValueTwo = "Blah", ValueThree = 33 };
var actual = MethodBeingTested();
Assert.That(expected.ValueOne, Is.EqualTo(actual.ValueOne));
Assert.That(expected.ValueTwo, Is.EqualTo(actual.ValueTwo));
Assert.That(expected.ValueThree, Is.EqualTo(actual.ValueThree));
}
You can write:
[Read More]Saturday MP Show #6: Adding Unit Tests for the Standard Ruby Linter ToDo Bug Fix
I add a unit test for the Standard Ruby linter bug fix done in the last episode. When adding the unit test I find out someone has improved the todo generation logic. Thank you. I also find a remove a redundant test.
Read about the bug being fixed here.
[Read More]Saturday MP Show #5: Fixing the Standard (Ruby Linter) Existing ToDo List Bug
In this episode I implement a fix for the todo file generation bug in the Standard (Ruby linter) and do some manual testing. Also use ChatGPT to explain some code that GitHub Copilot generated.
Read about the bug being fixed here.
See the previous episode, number 4, where I create I duplicate the issue and come up with the fix possible fix.
[Read More]Saturday MP Show #4: Duplicating the Standard (Ruby Linter) Existing ToDo List Bug
I duplicate a todo file generation bug in the Standard (Ruby linter) and come up with a possible fix but don’t actually get to the fix.
Read about the bug here.
See episode #1 where I create a Docker development environment for Standard:
As a bonus at the beginning of the video I upgrade RubyMine to fix the bug we encountered in episode 2:
[Read More]