specs

Is "RTFM" counter-productive?

I'm reading the very excellent The Design of Everyday Things by Donald Norman. In it, he describes a common problem: The reason [that nobody reported a problem with the system] was simple: when the system stopped working or did something strange, the secretaries dutifully reported it as a problem. But when they made the "return" ve...

How to write a spec that is productive?

I've seen different program managers write specs in different format. Almost every one has had his/her own style of writing a spec. On one hand are those wordy documents which given to a programmer are likely to cause him/her missing a few things. I personally dread the word documents spec...I think its because of my reading style...I a...

Templates of Technical and Functional Specs

So basically I am looking for good templates for writing both technical and functional specs on a project or work request. What do you guys use? How in depth do you get while writing the specs? Any additional general tips you could provide would be appreciated. My company needs these badly. I work for a contractor and right now we do...

How does the "specs" BDD framework for Scala work?

I'm just getting started with Scala, and I'm wondering which language feature allows you to do this: "PersistentQueue" should { "add and remove one item" in { withTempFolder { val q = new PersistentQueue(folderName, "work", Config.fromMap(Map.empty)) q.setup q.length mustEqual 0 q.totalItems mustEqual 0 ...

As a consultant should I charge my clients for developing specs?

I'm trying to transition into some programming consulting work. A friend of my former employer is interested in having me "develop a spec," which I take to mean come up with some technology requirements and time estimates (e.g. milestones). Do developers normally charge for this? I'm imagining it's basically the same kind of workload th...

Repository of "standard" BDD specs

Do you know of any resources or libraries of BDD specs? For example, almost every web app has a login process. Some "standard" features might be handling of forgotten passwords, reset password, etc. I'm thinking of something like a code snippet archive of BDD specs so we don't all have to write them from scratch. ...

How to delete some extra folder using rpm

I am using Fedora 10, I have created an rpm file for my software. It removes all the files from the installed directory. If i use yum remove command or rpm -e command. but after installation my application automatically creates some extra folders in home directory. If I uninstall my application then file from home directories do not get ...

scala specs don't exit when testing actors

I'm trying to test some actors using scala specs. I run the test in IDEA or Maven (as junit) and it does not exit. Looking at the code, my test finished, but some internal threads (scheduler) are hanging around. How can I make the test finish? ...

How to eliminate stack trace when running Specs through SBT?

I have a Scala project that I'm using SBT and Specs on. When I run sbt test, it correctly runs my tests, but a failing test results in a huge stack trace. [info] == caravan.DependenciesSpec == [info] specifies [info] x Status should mirror single job org.specs.specification.FailureExceptionWithResult: 'caravan.Status(2)' is not eq...

Getting failure detail on failed scala/maven/specs tests

I am playing a bit with scala, using maven and scala plugin. I can't find a way to have mvn test report failure details - in particular, whenever some function returns wrong reply, I am getting information about the failure, but I have no way to see WHICH wrong reply was reported. For example, with test like: object MyTestSpec ext...

How to play with Specs matchers in Scala REPL?

While debugging or exploring spec features it would be more advantageous to type them in REPL (Scala interpreter) rather then in file with spec and run it with something like maven. What is the optimal way to create in REPL the same "environment" as in Specification object? Update: It looks like the simplest way to experiment with specs...

How to specify image for the Settings app in iPhone app

How do I specify the image for the Setting in the iPhone for my iPhone app? What are the requirements for the images? ...

What’s the difference between ScalaTest and Scala Specs unit test frameworks?

Both are BDD (Behavior Driven Development) capable unit test frameworks for Scala written in Scala. And Specs is built upon may also involve the ScalaTest framework. But what does Specs offer ScalaTest doesn't? What are the differences? ...

Specs for all android phones

Is there a central place where I can find the specs for the majority of the Android phones available on the market? I want to create avds for each of them. ...

Tool for screen drawing (html components)

I am using google docs to draw draft screens for specs. I wonder if there is a tool to simulate draft screens. For example I couldn't put a combobox on google docs easily. Thanks. ...

HTML5: HTML VS XHTML spec question regarding comments

In the W3C working draft for HTML5 here's a line I find confusing: http://www.w3.org/TR/html5/introduction.html#html-vs-xhtml Comments that contain the string "-->" can be represented in the DOM but not in the HTML syntax or in XML. I can interpret this in two different ways: Comments that contain the string "-->" can be rep...

How to compose a Matcher[Iterable[A]] from a Matcher[A] with specs testing framework

If I have a Matcher[A] how do create a Matcher[Iterable[A]] that is satisfied only if each element of the Iterable satisfies the original Matcher. class ExampleSpec extends Specification { def allSatisfy[A](m: => Matcher[A]): Matcher[Iterable[A]] = error("TODO") def notAllSatisfy[A](m: => Matcher[A]): Matcher[Iterable[A]] = allSati...

Gecko/Firefox support for HTML5 Notifications

Hi Folks, I'm wondering if there is any build-in support for the HTML5 Notification feature in Gecko browsers so far? Maybe some hidden developer thingy ? I'm aware of WebKits window.webkitNotifications which works great, so, is there a Firefox implementation ? update After searching and reading some w3c HTML5 specs, I'm maybe a litt...

How does a good "spec" differ from an unclear "pray?"

Hi, I am sure everybody knows the 5Ws, a formula for getting the "full" story on something which is used in journalism. Is there a formula like this -I mean, like that questions should be answered for example- so that a "spec" can be considered as totally complete. Because sometimes I face some features with a spec that sounds like a ...

Mocking scala object

I am using mockito and trying to mock a scala object. object Sample { } //test class SomeTest extends Specification with ScalaTest with Mockito { "mocking should succeed" in { val mockedSample = mock[Sample] } } Give me 2 compilation errors. error: Not found type Sample error: could not find implicit value for parameter...