tdd

TDD/Testing CSS and HTML? [closed]

空扰寡人 提交于 2019-12-03 02:54:27
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . IS there a way to test CSS and HTML? For instance: sometimes some of the notices get affected by some CSS changes. I don't want to be testing all the notices by hand every time I do a change. Thanks It's very difficult to automate testing of layout. But it's not too difficult to drastically cut down the time and effort involved so that you can do it manually, but very quickly. You could

Does TDD mean not thinking about class design?

北战南征 提交于 2019-12-03 02:54:14
I am making a role playing game for fun and attempting to use TDD while developing it. Many of the TDD examples I see focus on creating the test first, then creating objects that are needed to get the test to pass. For example: [Test] public void Character_WhenHealthIsBelowZero_IsDead() { // create default character with 10 health Character character = new Character(); character.SubtractHealth(20); Assert.That(character.IsAlive, Is.EqualTo(false)); } So based on this I'll create the character class and appropriate properties/methods. This seems fine and all but should my class design really

Examples of great software design and implementation [closed]

℡╲_俬逩灬. 提交于 2019-12-03 02:48:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I hope this isn't a duplicate... What is the most solidly designed and implemented software system/framework/application that you've come across? It seems like TDD, SOLID principles, OO design patterns, and things like that can be easily theorized on podcasts and blogs using really simple examples, but it's hard

Is unit testing a bad idea during beta/prototyping?

旧街凉风 提交于 2019-12-03 02:38:12
A new project we began introduced a lot of new technologies we weren't so familiar with, and an architecture that we don't have a lot of practice in. In other words, the interfaces and interactions between service classes etc of what we're building are fairly volatile, even more so due to internal and customer feedback. Though I've always been frustrated by the ever-moving specification, I see this to some degree a necessary part of building something we've never built before - if we just stuck to the original design and scope, the end product would probably be a whole lot less innovative and

Is there any open source mocking framework resembling TypeMock?

て烟熏妆下的殇ゞ 提交于 2019-12-03 02:36:32
TypeMock is too expensive for a hobbist like me :) Moq or the next version of RhinoMocks have no plans on listening to the profiling API, why is that? EDIT: This enables features such as: Mocking non-virtual methods and properties (!). Mocking browser environments. simpler syntax which is less fragile (and not having to go trough mock objects). Mocking static methods Sometimes is useful (Mostly in legacy scenarios, involving the dreaded DateTime.Now). And more .. TypeMock is too expensive for a hobbist like me It's probably also too expensive to develop and release for free. Declaimer I work

Are there any good online tutorials to TDD for an experienced programmer who is new to testing? [closed]

岁酱吖の 提交于 2019-12-03 02:25:53
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm working with a Python development team who is experienced with programming in Python, but is just now trying to pick up TDD. Since I have some experience working with TDD myself, I've been asked to give a presentation on it. Mainly, I'm just wanting to see articles on this so that I can see how other people

How to speed up TDD flow with iOS and Objective-C/Xcode

安稳与你 提交于 2019-12-03 02:25:22
问题 Have been searching for experiences on TDD with Objective-C and iOS development. Previous post about "string calculator"-kata in Objective-C was useful (thanks). But it would be nice to learn even more fluent iPhone-TDD. Do you have some experience of how to use UISpec (based on Rspec), iCuke (based on cucumber) or similar tools? And if you also have got the flow going with autotesting (autoiphonetest.rb) like Paul did in his his blog, it would be very interesting feedback. Here is a good

What javascript mocking frameworks are people using? [closed]

不羁岁月 提交于 2019-12-03 02:20:08
Closed . This question is opinion-based. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . I'm using Jasmine for testing client & server side javascript and need to do some mocking. Has anyone got any suggestions for a good javascript mocking framework? I tried this once, but ended up refactoring instead so it wasn't needed. It doesn't have dependencies, so it should work just fine on node.js. http://sinonjs.org/ These are testing frameworks, but some of them include

Is there any framework for .NET to populate test data? [closed]

坚强是说给别人听的谎言 提交于 2019-12-03 02:16:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 months ago . I am use c# and for unit testing and integration testing usually I need to populate fields automatically based on attributes. Lets say we will test if we can write and get back user data to database. I create a user object populate fields write user to database Read user object from database Check fields if

RSpec: how do I write a test that expects certain output but doesn't care about the method?

北城以北 提交于 2019-12-03 02:05:08
I'm trying to get my head around test-driven design, specifically RSpec. But I'm having trouble with some of the examples from The RSpec Book. In the book, we test for output on $STDOUT like this: output = double('output') game = Game.new output.should_receive(:puts).with('Welcome to Codebreaker!') game.start() Well, that works after a fashion. But why on earth should I care if the Game object uses the puts() method? If I change it to print(), should it really break the test? And, more importantly, isn't this against the one of the principals of TDD - that I should be testing what the method