Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when linking nUnit test results #223

Closed
markwinspear opened this issue Nov 18, 2015 · 7 comments
Closed

Crash when linking nUnit test results #223

markwinspear opened this issue Nov 18, 2015 · 7 comments
Assignees
Labels

Comments

@markwinspear
Copy link

Hi

i can successfully run pickles without linking to the results file, but when I try to link to the results, I get a fatal error.

  • I am running the following pickles commands in a .bat file:
.\packages\Pickles.CommandLine.2.0.0\tools\pickles.exe^
 --feature-directory=./Specflow_Selenium_PO_Example2\Features^
 --output-directory=.\documentation^
 --test-results-format=nunit^
 --link-results-file=C:\Users\markwinspear\Documents\TestResult.xml
pause
  • This is the output:
2015-11-18 15:01:22.1124|INFO|Program|Pickles v.2.0.0.0
2015-11-18 15:01:22.1305|INFO|Program|Generating documentation based on the foll
owing parameters
2015-11-18 15:01:22.1305|INFO|Program|------------------------------------------
----------------
2015-11-18 15:01:22.1305|INFO|Program|Feature Directory         : E:\Google Driv
e\Documents\Cucumber_Selenium_CSharp\Specflow_Selenium_PO_Example2\Specflow_Sele
nium_PO_Example2\Features
2015-11-18 15:01:22.1305|INFO|Program|Output Directory          : E:\Google Driv
e\Documents\Cucumber_Selenium_CSharp\Specflow_Selenium_PO_Example2\documentation

2015-11-18 15:01:22.1305|INFO|Program|Project Name              :
2015-11-18 15:01:22.1305|INFO|Program|Project Version           :
2015-11-18 15:01:22.1305|INFO|Program|Language                  : en
2015-11-18 15:01:22.1305|INFO|Program|Incorporate Test Results? : Yes
2015-11-18 15:01:22.1305|INFO|Program|Test Result Format        : NUnit
2015-11-18 15:01:22.1305|INFO|Program|Test Result File          : C:\Users\markw
inspear\Documents\TestResult.xml
2015-11-18 15:01:22.8415|FATAL|Program|Pickles did not complete successfully
  • The TestResult.xml file is generated via the NUnit console and its contents look like this:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!--This file represents the results of running a test suite-->
<test-results name="E:\Google Drive\Documents\Cucumber_Selenium_CSharp\Specflow_Selenium_PO_Example2\Specflow_Selenium_PO_Example2\bin\Debug\Specflow_Selenium_PO_Example2.dll" total="4" errors="0" failures="0" not-run="0" inconclusive="0" ignored="0" skipped="0" invalid="0" date="2015-11-17" time="08:39:12">
  <environment nunit-version="2.6.4.14350" clr-version="2.0.50727.8009" os-version="Microsoft Windows NT 6.2.9200.0" platform="Win32NT" cwd="E:\Google Drive\Documents\Cucumber_Selenium_CSharp\Specflow_Selenium_PO_Example2\Specflow_Selenium_PO_Example2" machine-name="CHROMEBOOKVM2" user="markwinspear" user-domain="CHROMEBOOKVM2" />
  <culture-info current-culture="en-GB" current-uiculture="en-US" />
  <test-suite type="Assembly" name="E:\Google Drive\Documents\Cucumber_Selenium_CSharp\Specflow_Selenium_PO_Example2\Specflow_Selenium_PO_Example2\bin\Debug\Specflow_Selenium_PO_Example2.dll" executed="True" result="Success" success="True" time="39.350" asserts="0">
    <results>
      <test-suite type="Namespace" name="Specflow_Selenium_PO_Example2" executed="True" result="Success" success="True" time="39.337" asserts="0">
        <results>
          <test-suite type="Namespace" name="Features" executed="True" result="Success" success="True" time="39.337" asserts="0">
            <results>
              <test-suite type="TestFixture" name="ExampleFeature" description="example" executed="True" result="Success" success="True" time="0.712" asserts="0">
                <results>
                  <test-case name="Specflow_Selenium_PO_Example2.Features.ExampleFeature.AddTwoNumbers" description="Add two numbers" executed="True" result="Success" success="True" time="0.270" asserts="0">
                    <categories>
                      <category name="mytag" />
                    </categories>
                  </test-case>
                </results>
              </test-suite>
              <test-suite type="TestFixture" name="ExampleWebFeatureFeature" description="ExampleWebFeature" executed="True" result="Success" success="True" time="38.614" asserts="0">
                <categories>
                  <category name="web" />
                </categories>
                <results>
                  <test-suite type="ParameterizedTest" name="Login" description="Login" executed="True" result="Success" success="True" time="38.611" asserts="0">
                    <results>
                      <test-case name="Specflow_Selenium_PO_Example2.Features.ExampleWebFeatureFeature.Login(&quot;valid combination&quot;,&quot;tomsmith&quot;,&quot;SuperSecretPassword!&quot;,&quot;passed&quot;,null)" executed="True" result="Success" success="True" time="14.280" asserts="1" />
                      <test-case name="Specflow_Selenium_PO_Example2.Features.ExampleWebFeatureFeature.Login(&quot;invalid combination 1&quot;,&quot;test&quot;,&quot;test&quot;,&quot;failed&quot;,null)" executed="True" result="Success" success="True" time="13.593" asserts="1" />
                      <test-case name="Specflow_Selenium_PO_Example2.Features.ExampleWebFeatureFeature.Login(&quot;special characters&quot;,&quot;$$$&quot;,&quot;SuperSecretPassword!&quot;,&quot;failed&quot;,null)" executed="True" result="Success" success="True" time="10.734" asserts="1" />
                    </results>
                  </test-suite>
                </results>
              </test-suite>
            </results>
          </test-suite>
        </results>
      </test-suite>
    </results>
  </test-suite>
</test-results>
@dirkrombauts
Copy link
Member

Thanks for providing me with this much detail. Would it also be possible to provide me with the .feature file(s)? If the steps in your files are proprietary, you can replace them with dummy steps - the important parts are the name of the features, scenarios and scenario outlines.

@dirkrombauts dirkrombauts self-assigned this Nov 18, 2015
@markwinspear
Copy link
Author

@dirkrombauts Sure - I've attached now (I've changed the extension so github will accept the upload). They are not proprietary, I'm getting a proof of concept up and running before I delve into project-specific work

example.txt
ExampleWebFeature.txt

@dirkrombauts
Copy link
Member

Thanks. Am I guessing correctly that these feature files are in the root of their project, in namespace Specflow_Selenium_PO_Example2.Features?

I'll do my best to have a look at them tomorrow, and hopefully release a bug fix.

@dirkrombauts
Copy link
Member

I just checked in a fix - this issue opened a nice can of worms :-)

I'll release a new version in the afternoon.

@dirkrombauts dirkrombauts changed the title FATAL error Crash when linking nUnit test results Nov 20, 2015
@markwinspear
Copy link
Author

Thanks @dirkrombauts :-)

@dirkrombauts
Copy link
Member

And the new version is released :-)

@markwinspear
Copy link
Author

Thanks @dirkrombauts - that's super quick service and I now have an html file showing the results as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants