Executable Specifications for .Net
JavaScript C# HTML CSS Ruby Batchfile
Permalink
Failed to load latest commit information.
client better formula for serving client assets during development. Closes G… Sep 26, 2016
documentation Forcing the usage of a certain CultureInfo for conversions. Closes GH… Apr 19, 2016
packaging/nuget Distributing font-awesome with the application, Closes GH-232 Jun 8, 2015
src just proving out the critical exception stops a test Sep 28, 2016
test Mocha tests all pass again Jan 10, 2016
util merged in the client code Mar 23, 2015
.babelrc checkpoint: mocha tests all pass Dec 21, 2015
.editorconfig Remove .gitattributes in favor of .editorconfig Jun 19, 2015
.gitignore fixed the Guid path thing that's been irritating me. Closes GH-544 Sep 23, 2016
ILMerge.exe converting to fuburake. Closes GH-8 May 24, 2013
ILRepack.rb fixed exception in rakefile by including version in runtime method Jun 28, 2013
LICENSE.txt initial import from the storyteller/two branch Oct 24, 2012
NuGet.exe adding Nuget.exe and nuspecs back Mar 25, 2015
build.cmd couple tweaks to build correctly after rebasing on master Sep 23, 2016
build.sh couple tweaks to build correctly after rebasing on master Sep 23, 2016
harness.htm react hot reloader works again Dec 22, 2015
karma.conf.js merged in the client code Mar 23, 2015
package.json separated out the flaky integration tests and replaced the rake scrip… Sep 23, 2016
publish-docs.cmd Mar docs! Actions, facts, sentences May 12, 2015
readme.markdown Updating the readme Feb 5, 2016
run-docs.cmd Support for FubuCore command line usage generation May 19, 2015
server.js react hot reloader works again Dec 22, 2015
smoke-test.conf.js merged in the client code Mar 23, 2015
storyteller.css CSS tweaks and embedding the jetbrains webinar into the home page Jan 29, 2016
webpack.config.js react hot reloader works again Dec 22, 2015

readme.markdown

Storyteller is a tool for crafting executable specifications.

Quickstart

Join the chat at https://gitter.im/storyteller/Storyteller

After doing a new git clone of the code, run npm run build at the command line from the root directory.

Getting started with the code

UPDATE: Storyteller seems to work just fine with io.js as well, but please tell us if you encounter any issues developing with io.js instead of node.js.

The Storyteller code consists of two parts, a web based client written in Javascript and the actual specification engine and a self-contained web host written in C#. In order to work with the Storyteller code, you'll need to have both an installation of Node.js v12 with npm and .Net 4.5 on your box. To start working with the code, first run the build script with rake, or if you'd rather not use a Ruby-based build, the build.cmd script will set up both the Node.js and .Net dependencies and run most of the unit tests. Running these commands will:

  1. Install all the necessary npm packages for the client side
  2. Build the bundled javascript products that need to be embedded into the .Net code
  3. Runs all the Javascript tests
  4. Installs the necessary Nuget dependencies for the .Net code
  5. Builds and tests the .Net code

Working on the Javascript Code

The client code is built with React.js as the view technology and Webpack as the client build tool. The client side automation is done through npm at the command line:

  • npm run build-client - precompile the JSX files, do ES6 to ES5 transformations, and bundle the files
  • npm run watch - same as above, but watches for changes and builds automatically
  • npm run test - runs all the Javascript tests
  • npm run harness - hosts the client code with a stubbed in backend at http://localhost:3000 using the React hot loader for rapid UI work
  • npm run test-mocha - run the unit tests against the /lib folder
  • npm run tdd-mocha - run the unit tests against the /lib folder in watched mode
  • npm run test-karma - run the karma tests against the JSX components
  • npm run tdd-karma - run the karma tests against the JSX components in watched mode
  • npm run smoke-test - runs a series of karma tests against all the sample specifications

and as stated earlier, npm run build builds and tests both the client side Javascript and server side .Net at one time.

The client side code is in the /client folder. The javascript code is organized as follows:

  • /components - All the React.js components as JSX files
  • /component-tests - Karma tests against the React.js components
  • /lib - All the other Javascript code. Data stores, controllers, presenters, domain model objects. Storyteller is roughly using a Flux style architecture using Postal.js as an event aggregator
  • /lib-tests - Mocha tests against the lib code

Working on the .Net Code

The source code is in the /src folder. For the moment, we're using Visual Studio.Net and the solution file is at src/Storyteller.sln. As DNX matures we will probably move to eliminate the .sln and .csproj files in the code repository. You will need to run the command line build at least once before opening the C# code in Visual Studio.

From the command line, you can run the rake test command to run all the .Net unit tests.

The .Net code uses Paket for Nuget dependency management and Fixie for unit testing. At this time we're emulating NUnit behavior, but this is expected to change to Fixie idioms at a later time.

UPDATE: Storyteller will transition to xUnit.Net for unit testing at some point prior to starting work on CoreCLR & DNX support.